@Test public void testdoScreenBasedActionLog() throws Exception { initMocks(); RegionTestImpl.testLogMethod(); assertLastLine(logFile, RegionTestImpl.class.getSimpleName(), LogLevel.WARNING, "RegionTestImpl.testLogMethod()"); }
@Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") public void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult) { addActionLog(joinPoint, logToResult); }
RhinoAspect extends BaseSakuliAspect { @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") public void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult) { addActionLog(joinPoint, logToResult); } }
RhinoAspect extends BaseSakuliAspect { @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") public void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult) { addActionLog(joinPoint, logToResult); }  }
RhinoAspect extends BaseSakuliAspect { @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") public void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult) { addActionLog(joinPoint, logToResult); }  @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") void getRhinoScriptRunner(JoinPoint joinPoint); @Before("execution(* org.sakuli.actions.*.*(..)) &&" + "@annotation(logToResult)") void doTestCaseActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.environment.*.*(..)) &&" + "@annotation(logToResult)") void doEnvironmentLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.logging.*.*(..)) &&" + "@annotation(logToResult)") void doLoggingLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* net.sf.sahi.report.Report.addResult(..))") void doHandleRhinoException(JoinPoint joinPoint); }
RhinoAspect extends BaseSakuliAspect { @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") public void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult) { addActionLog(joinPoint, logToResult); }  @After("execution(* net.sf.sahi.rhino.RhinoScriptRunner.setReporter*(*))") void getRhinoScriptRunner(JoinPoint joinPoint); @Before("execution(* org.sakuli.actions.*.*(..)) &&" + "@annotation(logToResult)") void doTestCaseActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.screenbased.*.*(..)) &&" + "@annotation(logToResult)") void doScreenBasedActionLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.environment.*.*(..)) &&" + "@annotation(logToResult)") void doEnvironmentLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* org.sakuli.actions.logging.*.*(..)) &&" + "@annotation(logToResult)") void doLoggingLog(JoinPoint joinPoint, LogToResult logToResult); @Before("execution(* net.sf.sahi.report.Report.addResult(..))") void doHandleRhinoException(JoinPoint joinPoint); static final String ALREADY_PROCESSED; }