Search in sources :

Example 1 with ProjectServiceImpl

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

the class ProjectServiceImplTest method setUp.

@Before
public void setUp() throws Exception {
    mockStatic(Hudson.class);
    hudson = PowerMockito.mock(Hudson.class);
    PowerMockito.mockStatic(JobUuid.class);
    MockitoAnnotations.initMocks(this);
    this.projectService = new ProjectServiceImpl(securityService);
    this.projectService.setHudson(hudson);
    assertThat(getInst(), notNullValue());
}
Also used : Hudson(hudson.model.Hudson) ProjectServiceImpl(org.hudsonci.service.internal.ProjectServiceImpl) Before(org.junit.Before)

Aggregations

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