Search in sources :

Example 1 with SahiScript

use of net.sf.sahi.playback.SahiScript in project sakuli by ConSol.

the class AopBaseTest method initMocks.

protected void initMocks() {
    SakuliExceptionHandler sakuliExceptionHandler = BeanLoader.loadBean(SakuliExceptionHandler.class);
    reset(sakuliExceptionHandler);
    SahiScript sahiScriptMock = mock(SahiScript.class);
    when(sahiScriptMock.jsString()).thenReturn("");
    new RhinoScriptRunner(sahiScriptMock);
}
Also used : RhinoScriptRunner(net.sf.sahi.rhino.RhinoScriptRunner) SakuliExceptionHandler(org.sakuli.exceptions.SakuliExceptionHandler) SahiScript(net.sf.sahi.playback.SahiScript)

Aggregations

SahiScript (net.sf.sahi.playback.SahiScript)1 RhinoScriptRunner (net.sf.sahi.rhino.RhinoScriptRunner)1 SakuliExceptionHandler (org.sakuli.exceptions.SakuliExceptionHandler)1