You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AspectMain.java 502B

123456789101112131415
  1. import org.aspectj.testing.Tester;
  2. import jar.required.Global;
  3. import classfile.required.ClassFile;
  4. public class AspectMain {
  5. public static void main (String[] args) {
  6. Tester.expectEvent("aspect");
  7. Tester.check(ClassFile.isTrue(), "not ClassFile.isTrue()?");
  8. Tester.check(Global.isTrue(), "not Global.isTrue()?");
  9. // aspect advises this invocation, adds "aspect" event
  10. new Runnable() { public void run(){}}.run();
  11. Tester.checkAllEvents();
  12. }
  13. }