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();
}
Aggregations