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);
}
Aggregations