Search in sources :

Example 1 with QueueServiceImpl

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

the class QueueServiceImplTest method setUp.

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

Aggregations

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