Search in sources :

Example 1 with NodeServiceImpl

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

the class NodeServiceImplTest method setUp.

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

Aggregations

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