use of io.fabric8.kubernetes.client.dsl.NetworkAPIGroupDSL in project strimzi-kafka-operator by strimzi.
the class IngressOperatorTest method mocker.
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
NetworkAPIGroupDSL network = mock(NetworkAPIGroupDSL.class);
V1NetworkAPIGroupDSL v1 = mock(V1NetworkAPIGroupDSL.class);
when(network.v1()).thenReturn(v1);
when(v1.ingresses()).thenReturn(op);
when(mockClient.network()).thenReturn(network);
}
Aggregations