Skip to content

Commit 103e03b

Browse files
authored
test: simplify statement lambda to expression lambda in KubernetesWatchTaskTest
Signed-off-by: Elena Parapounsky <[email protected]>
1 parent 5977427 commit 103e03b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

gradle-plugin/kubernetes/src/test/java/org/eclipse/jkube/gradle/plugin/task/KubernetesWatchTaskTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ void setUp() {
5959
// Mock required for environments with no DOCKER available (don't remove)
6060
dockerAccessFactoryMockedConstruction = mockConstruction(DockerAccessFactory.class,
6161
(mock, ctx) -> when(mock.createDockerAccess(any())).thenReturn(mock(DockerAccess.class)));
62-
dockerBuildServiceMockedConstruction = mockConstruction(DockerBuildService.class, (mock, ctx) -> {
63-
when(mock.isApplicable()).thenReturn(true);
64-
});
62+
dockerBuildServiceMockedConstruction = mockConstruction(DockerBuildService.class, (mock, ctx) -> when(mock.isApplicable()).thenReturn(true));
6563
watcherManagerMockedStatic = mockStatic(WatcherManager.class);
6664
kubernetesHelperMockedStatic = mockStatic(KubernetesHelper.class);
6765
extension = new TestKubernetesExtension();

0 commit comments

Comments
 (0)