use of com.openshift.internal.restclient.ResourceFactory in project jbosstools-openshift by jbosstools.
the class DeployImageJobTest method setUp.
@Before
public void setUp() throws Exception {
when(project.getName()).thenReturn(NAMESPACE);
when(parameters.getProject()).thenReturn(project);
when(parameters.getReplicas()).thenReturn(5);
when(parameters.getResourceName()).thenReturn("aresourcename");
when(client.getOpenShiftAPIVersion()).thenReturn("v1");
factory = new ResourceFactory(client);
job = spy(new TestDeployImageJob(parameters));
}
Aggregations