Search in sources :

Example 1 with IObjectReference

use of com.openshift.restclient.model.IObjectReference in project jbosstools-openshift by jbosstools.

the class ResourceMocks method createBuildOutputReference.

public static void createBuildOutputReference(String buildOutputReferenceKind, String buildOutputReferenceName, IBuildConfig bc) {
    IObjectReference reference = mock(IObjectReference.class);
    doReturn(buildOutputReferenceKind).when(reference).getKind();
    doReturn(buildOutputReferenceName).when(reference).getName();
    doReturn(reference).when(bc).getBuildOutputReference();
}
Also used : IObjectReference(com.openshift.restclient.model.IObjectReference)

Aggregations

IObjectReference (com.openshift.restclient.model.IObjectReference)1