|
1 | 1 | /* |
2 | | - * Copyright (c) 2012-2025 Red Hat, Inc. |
| 2 | + * Copyright (c) 2012-2026 Red Hat, Inc. |
3 | 3 | * This program and the accompanying materials are made |
4 | 4 | * available under the terms of the Eclipse Public License 2.0 |
5 | 5 | * which is available at https://www.eclipse.org/legal/epl-2.0/ |
|
15 | 15 | import static org.mockito.ArgumentMatchers.eq; |
16 | 16 | import static org.mockito.Mockito.doThrow; |
17 | 17 | import static org.mockito.Mockito.never; |
18 | | -import static org.mockito.Mockito.spy; |
19 | 18 | import static org.mockito.Mockito.verify; |
20 | 19 | import static org.mockito.Mockito.when; |
21 | 20 | import static org.testng.Assert.assertEquals; |
@@ -84,10 +83,8 @@ public void setUp() throws InfrastructureException { |
84 | 83 | new KubernetesMixedDispatcher(responses), |
85 | 84 | true); |
86 | 85 | kubernetesMockServer.init(); |
87 | | - kubernetesClient = spy(kubernetesMockServer.createClient()); |
88 | | - |
89 | | - KubernetesClient client = spy(kubernetesClient); |
90 | | - when(cheServerKubernetesClientFactory.create()).thenReturn(client); |
| 86 | + kubernetesClient = kubernetesMockServer.createClient(); |
| 87 | + when(cheServerKubernetesClientFactory.create()).thenReturn(kubernetesClient); |
91 | 88 |
|
92 | 89 | namespaceResolutionContext = |
93 | 90 | new NamespaceResolutionContext(TEST_WORKSPACE_ID, TEST_USER_ID, TEST_USERNAME); |
|
0 commit comments