]> source.dussan.org Git - aspectj.git/commitdiff
tidy up after tests finish
authorAndy Clement <aclement@gopivotal.com>
Wed, 20 Aug 2014 15:02:41 +0000 (08:02 -0700)
committerAndy Clement <aclement@gopivotal.com>
Wed, 20 Aug 2014 15:02:41 +0000 (08:02 -0700)
tests/bugs183/333066/Code.class [new file with mode: 0644]
tests/bugs183/333066/Code.java [new file with mode: 0644]
tests/bugs183/333066/X.class [new file with mode: 0644]
tests/src/org/aspectj/systemtest/incremental/tools/AnnotationProcessingTests.java

diff --git a/tests/bugs183/333066/Code.class b/tests/bugs183/333066/Code.class
new file mode 100644 (file)
index 0000000..bbf1f1b
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 (file)
index 0000000..3504589
--- /dev/null
@@ -0,0 +1,14 @@
+import java.util.*;
+
+public class Code {
+  public String getString()  {
+    Optional<String> 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 (file)
index 0000000..c7f90c0
Binary files /dev/null and b/tests/bugs183/333066/X.class differ
index bee582cf6ad2a05020c4bc0d56f07b47e44903e1..97bad4b22898729c14ae2a0e6dcb2b4dfa6781e0 100644 (file)
@@ -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");