您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

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. }