Search in sources :

Example 1 with ListAssert

use of org.assertj.core.api.ListAssert in project fabric8 by fabric8io.

the class KubernetesAssert method replicationControllers.

public ListAssert<ReplicationController> replicationControllers() {
    ReplicationControllerList replicationControllerList = client.replicationControllers().inNamespace(namespace()).list();
    assertThat(replicationControllerList).isNotNull();
    List<ReplicationController> replicationControllers = replicationControllerList.getItems();
    return (ListAssert<ReplicationController>) assertThat(replicationControllers);
}
Also used : ReplicationController(io.fabric8.kubernetes.api.model.ReplicationController) ReplicationControllerListAssert(io.fabric8.kubernetes.api.model.ReplicationControllerListAssert) ServiceListAssert(io.fabric8.kubernetes.api.model.ServiceListAssert) ListAssert(org.assertj.core.api.ListAssert) ReplicationControllerList(io.fabric8.kubernetes.api.model.ReplicationControllerList)

Aggregations

ReplicationController (io.fabric8.kubernetes.api.model.ReplicationController)1 ReplicationControllerList (io.fabric8.kubernetes.api.model.ReplicationControllerList)1 ReplicationControllerListAssert (io.fabric8.kubernetes.api.model.ReplicationControllerListAssert)1 ServiceListAssert (io.fabric8.kubernetes.api.model.ServiceListAssert)1 ListAssert (org.assertj.core.api.ListAssert)1