Search in sources :

Example 1 with ScriptServiceImpl

use of org.hudsonci.service.internal.ScriptServiceImpl in project hudson-2.x by hudson.

the class ScriptServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    // static methods
    mockStatic(Hudson.class);
    // final and native
    hudson = mock(Hudson.class);
    mockStatic(RemotingDiagnostics.class);
    mockStatic(MasterComputer.class);
    MockitoAnnotations.initMocks(this);
    scriptService = new ScriptServiceImpl(security);
    scriptService.setHudson(hudson);
}
Also used : ScriptServiceImpl(org.hudsonci.service.internal.ScriptServiceImpl) Hudson(hudson.model.Hudson) Before(org.junit.Before)

Aggregations

Hudson (hudson.model.Hudson)1 ScriptServiceImpl (org.hudsonci.service.internal.ScriptServiceImpl)1 Before (org.junit.Before)1