--- /dev/null
+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);}
+}
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");