io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL Java Examples

The following examples show how to use io.fabric8.kubernetes.client.dsl.AppsAPIGroupDSL. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DeploymentOperatorTest.java    From strimzi-kafka-operator with Apache License 2.0 5 votes vote down vote up
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    AppsAPIGroupDSL mockExt = mock(AppsAPIGroupDSL.class);
    when(mockExt.deployments()).thenReturn(op);
    when(mockClient.apps()).thenReturn(mockExt);

}
 
Example #2
Source File: StatefulSetOperatorTest.java    From strimzi-kafka-operator with Apache License 2.0 4 votes vote down vote up
@Override
protected void mocker(KubernetesClient mockClient, MixedOperation op) {
    AppsAPIGroupDSL mockExt = mock(AppsAPIGroupDSL.class);
    when(mockExt.statefulSets()).thenReturn(op);
    when(mockClient.apps()).thenReturn(mockExt);
}
 
Example #3
Source File: ManagedKubernetesClient.java    From kubernetes-client with Apache License 2.0 4 votes vote down vote up
@Override
public AppsAPIGroupDSL apps() {
  return delegate.apps();
}