Search in sources :

Example 1 with ResourceFactory

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));
}
Also used : ResourceFactory(com.openshift.internal.restclient.ResourceFactory) IResourceFactory(com.openshift.restclient.IResourceFactory) Before(org.junit.Before)

Aggregations

ResourceFactory (com.openshift.internal.restclient.ResourceFactory)1 IResourceFactory (com.openshift.restclient.IResourceFactory)1 Before (org.junit.Before)1