123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110 |
- <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"[]>
-
- <suite>
-
- <ajc-test dir="bugs1810/508661" title="various ltw">
- <compile options="-1.8" files="CacheMethodResult.java A_yes.java B_no.java Run.java" outjar="classes.jar"/>
- <compile options="-1.8 -Xlint:ignore" files="CacheMethodResultAspect.java" outjar="aspects.jar"/>
- <run class="Run" ltw="aop.xml">
- <stdout>
- <line text="around: void A_yes.m()"/>
- <line text="A_yes.m()"/>
- <line text="A_yes has interface? CacheMethodResultAspect$ajcMightHaveAspect"/>
- <line text="B_no.m()"/>
- <line text="B_no has interface? no"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1810/500035" title="ataspectj binding">
- <compile options="-1.8" files="Code.java"/>
- <run class="Code">
- <stdout>
- <line text="targetObject = hello"/>
- <line text="regex = l"/>
- <line text="replacement = 7"/>
- <line text="he7lo"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1810/500035" title="ataspectj binding 2">
- <compile options="-1.8" files="Code2.java"/>
- <run class="Code2">
- <stdout>
- <line text="targetObject = hello"/>
- <line text="regex = l"/>
- <line text="replacement = 8"/>
- <line text="he8lo"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1810/500035" title="ataspectj binding 3 -XnoInline">
- <compile options="-1.8 -XnoInline" files="Code3.java"/>
- <run class="Code3">
- <stdout>
- <line text="first: binding target, just passing everything through: target=Foo(1)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="third: binding this, just passing everything through: this=Foo(0)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
- <line text="Executing run(abc) on Foo(i=4)"/>
- <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
- <line text="Executing run(abc) on Foo(i=0)"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1810/500035" title="ataspectj binding 4">
- <compile options="-1.8" files="Code3.java"/>
- <run class="Code3">
- <stdout>
- <line text="first: binding target, just passing everything through: target=Foo(1)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="second: binding this and target, just passing everything through: this=Foo(0) target=Foo(1)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="third: binding this, just passing everything through: this=Foo(0)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="fourth: binding this, switching from Foo(0) to Foo(3)"/>
- <line text="Executing run(abc) on Foo(i=1)"/>
- <line text="fifth: binding target, switching from Foo(1) to Foo(4)"/>
- <line text="Executing run(abc) on Foo(i=4)"/>
- <line text="sixth: binding this and target, switching them around (before this=Foo(0) target=Foo(1))"/>
- <line text="Executing run(abc) on Foo(i=0)"/>
- </stdout>
- </run>
- </ajc-test>
-
- <ajc-test dir="bugs1810/501656" title="generics exception">
- <compile options="-1.8 -parameters" files="ApplicationException.java ApplicationExceptionHandler.java"/>
- </ajc-test>
-
- <ajc-test dir="bugs1810/490315" title="indy">
- <compile options="-1.8" files="FailingAspect.java SomeAnno.java SomeContext.java SomeCriteria.java SomeDTO.java SomeEnum.java SomePiece.java SomePropertyDTO.java SomeService.java SomeServiceImpl.java"/>
- </ajc-test>
-
- <ajc-test dir="bugs1810/493554" title="pertarget">
- <compile options="-1.8" files="Dep.java FooAspect.aj Cmd.java"/>
- <run class="example.kusedep.Cmd"/>
- </ajc-test>
-
- <ajc-test dir="bugs1810/ambig" title="ambiguous message - 18">
- <compile options="-1.8" files="X.java"/>
- </ajc-test>
-
- <ajc-test dir="bugs1810/ambig" title="ambiguous message - 17">
- <compile options="-1.7" files="X.java"/>
- </ajc-test>
-
- <ajc-test dir="bugs1810/502807" title="unexpected aioobe">
- <compile options="-1.8" files="TestCollectors.java">
- <message kind="error" text="The method toList() in the type Collectors is not applicable for the arguments (Inner::getId)"/>
- </compile>
- </ajc-test>
-
- </suite>
|