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.

Main.22.java 427B

12345678910111213141516171819
  1. package packageOne;
  2. import org.aspectj.testing.Tester;
  3. public class Main {
  4. public static void main(String[] args) {
  5. Tester.expectEvent("go");
  6. for (int i = 0; i < args.length; i++) {
  7. Tester.expectEvent(args[i]);
  8. }
  9. go();
  10. Tester.checkAllEvents();
  11. }
  12. static void go() {
  13. Tester.event("go");
  14. Tester.event("new-event"); // newly-generated event
  15. }
  16. }