@Before(marker = BodyMarker.class, guard = GuardUnitTest.class)
 static void onMethodEntry(MethodStaticContext msc) {
   Profiler.startTest(msc.thisMethodFullName());
 }
 @After(marker = BodyMarker.class, guard = GuardUnitTest.class)
 static void onMethodExit(MethodStaticContext msc) {
   Profiler.endTest(msc.thisMethodFullName());
 }
Beispiel #3
0
 @Before(marker = AfterInitBodyMarker.class, scope = "*.app.Target*.<init>")
 public static void after(final MethodStaticContext msc) {
   System.out.println(msc.thisClassSimpleName() + "." + msc.thisMethodName() + " before");
 }