public abstract class HasMetadatasAssert<R extends io.fabric8.kubernetes.api.model.HasMetadata,AI extends HasMetadatasAssert>
extends org.assertj.core.api.ListAssert<R>
| Constructor and Description |
|---|
HasMetadatasAssert(List<R> actual) |
| Modifier and Type | Method and Description |
|---|---|
org.assertj.core.api.IntegerAssert |
assertSize()
Returns an assertion on the size of the list
|
protected AI |
assertThat(Iterable<R> result) |
protected abstract AI |
createListAssert(List<R> list) |
AI |
filter(org.assertj.core.api.Condition<R> condition) |
AI |
filterLabel(String key,
String value)
Filters the resources using the given label key and value
|
AI |
filterName(String name)
Filters the resources by name
|
AI |
filterNamespace(String namespace)
Filters the resources using the given namespace
|
R |
first()
Asserts that this collection has at least one element and returns the first one
|
List<R> |
get()
Returns the underlying actual value
|
R |
hasName(String name)
Asserts that this collection has a resource with the given name and return it
|
R |
last()
Asserts that this collection has at least one element and returns the last one
|
as, as, contains, describedAs, describedAs, doesNotContain, doesNotHave, doesNotHaveSameClassAs, has, has, hasSameClassAs, hasToString, is, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isOfAnyClassIn, isSameAs, isSorted, isSortedAccordingTo, overridingErrorMessage, usingComparator, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, withFailMessage, withThreadDumpOnErrorare, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyOnce, containsSequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotHaveDuplicates, doNotHave, endsWith, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOnNull, flatExtracting, flatExtracting, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, isEmpty, isNotEmpty, isNullOrEmpty, isSubsetOf, isSubsetOf, startsWith, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparatorasList, asString, descriptionText, equals, failWithMessage, getWritableAssertionInfo, hashCode, isNullclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitare, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyOnce, containsSequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotHaveDuplicates, doNotHave, endsWith, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasSameElementsAs, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, isSubsetOf, isSubsetOf, startsWithpublic org.assertj.core.api.IntegerAssert assertSize()
public R first()
public R last()
public R hasName(String name)
public AI filterLabel(String key, String value)
Copyright © 2011–2016 Red Hat. All rights reserved.