diff --git a/gradle-plugin/kubernetes/src/test/java/org/eclipse/jkube/gradle/plugin/task/KubernetesResourceTaskTest.java b/gradle-plugin/kubernetes/src/test/java/org/eclipse/jkube/gradle/plugin/task/KubernetesResourceTaskTest.java index 4538119519..dd695436d9 100644 --- a/gradle-plugin/kubernetes/src/test/java/org/eclipse/jkube/gradle/plugin/task/KubernetesResourceTaskTest.java +++ b/gradle-plugin/kubernetes/src/test/java/org/eclipse/jkube/gradle/plugin/task/KubernetesResourceTaskTest.java @@ -38,7 +38,7 @@ class KubernetesResourceTaskTest { public final TaskEnvironmentExtension taskEnvironment = new TaskEnvironmentExtension(); @BeforeEach - void setUp() throws IOException { + void setUp() { when(taskEnvironment.project.getExtensions().getByType(KubernetesExtension.class)) .thenReturn(new TestKubernetesExtension()); }