use of org.eclipse.jkube.gradle.plugin.OpenShiftExtension in project jkube by eclipse.
the class OpenShiftBuildTaskTest method setUp.
@Before
public void setUp() {
openshiftBuildServiceMockedConstruction = mockConstruction(OpenshiftBuildService.class, (mock, ctx) -> when(mock.isApplicable()).thenReturn(true));
final OpenShiftExtension extension = new TestOpenShiftExtension();
when(taskEnvironment.project.getExtensions().getByType(OpenShiftExtension.class)).thenReturn(extension);
extension.images = Collections.singletonList(ImageConfiguration.builder().name("foo/bar:latest").build(BuildConfiguration.builder().dockerFile("Dockerfile").build()).build());
}
Aggregations