From: Andy Clement Date: Wed, 20 Aug 2014 15:02:41 +0000 (-0700) Subject: tidy up after tests finish X-Git-Tag: V1_8_3~14 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=62b5e69a857ef64c71c39176d3fadc51c308ea02;p=aspectj.git tidy up after tests finish --- diff --git a/tests/bugs183/333066/Code.class b/tests/bugs183/333066/Code.class new file mode 100644 index 000000000..bbf1f1b5a Binary files /dev/null and b/tests/bugs183/333066/Code.class differ diff --git a/tests/bugs183/333066/Code.java b/tests/bugs183/333066/Code.java new file mode 100644 index 000000000..3504589bd --- /dev/null +++ b/tests/bugs183/333066/Code.java @@ -0,0 +1,14 @@ +import java.util.*; + +public class Code { + public String getString() { + Optional dummy = Optional.of("Just a dummy optional"); + return dummy.orElseThrow(() -> { + return new RuntimeException(); + }); + } +} + +aspect X { + before(): within(!X) {System.out.println(thisJoinPoint);} +} diff --git a/tests/bugs183/333066/X.class b/tests/bugs183/333066/X.class new file mode 100644 index 000000000..c7f90c0f6 Binary files /dev/null and b/tests/bugs183/333066/X.class differ diff --git a/tests/src/org/aspectj/systemtest/incremental/tools/AnnotationProcessingTests.java b/tests/src/org/aspectj/systemtest/incremental/tools/AnnotationProcessingTests.java index bee582cf6..97bad4b22 100644 --- a/tests/src/org/aspectj/systemtest/incremental/tools/AnnotationProcessingTests.java +++ b/tests/src/org/aspectj/systemtest/incremental/tools/AnnotationProcessingTests.java @@ -17,6 +17,16 @@ import java.util.List; public class AnnotationProcessingTests extends AbstractMultiProjectIncrementalAjdeInteractionTestbed { + + @Override + protected void tearDown() throws Exception { + super.tearDown(); + new File("Advise_aaa.java").delete(); + new File("Advise_ccc.java").delete(); + new File("AroundAdvise_aaa.java").delete(); + new File("AroundAdvise_ccc.java").delete(); + } + // Basic test: turns on annotation processing and tries to run the DemoProcessor public void testAnnotationProcessing1() throws Exception { createAndBuildAnnotationProcessorProject("ProcessorProject");