public abstract class HasMetadatasAssert<R extends io.fabric8.kubernetes.api.model.HasMetadata,AI extends HasMetadatasAssert> extends MetadatasListAssert<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
|
org.assertj.core.api.ObjectAssert<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
|
org.assertj.core.api.ObjectAssert<R> |
last()
Asserts that this collection has at least one element and returns the last one
|
newAbstractIterableAssert, toAssert
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, satisfies, usingComparator, usingComparator, usingComparisonStrategy, usingDefaultComparator, usingDefaultElementComparator, usingElementComparator, withFailMessage, withThreadDumpOnError
allMatch, allMatch, allSatisfy, anyMatch, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyNulls, containsOnlyOnce, containsSequence, containsSequence, containsSubsequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doNotHave, element, element, endsWith, endsWith, extracting, extracting, extracting, extracting, extracting, extracting, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnAssertions, filteredOnNull, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, getComparatorsByType, getComparatorsForElementPropertyOrFieldTypes, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, isEmpty, isNotEmpty, isNullOrEmpty, isSubsetOf, isSubsetOf, last, navigationDescription, noneMatch, noneSatisfy, size, startsWith, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveComparison, usingRecursiveComparison, usingRecursiveFieldByFieldElementComparator, zipSatisfy
asInstanceOf, asList, assertionError, asString, descriptionText, equals, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, isInstanceOfSatisfying, isNull, matches, matches, newListAssertInstance, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, withRepresentation
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
allMatch, allMatch, allSatisfy, anyMatch, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyNulls, containsOnlyOnce, containsSequence, containsSequence, containsSubsequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doNotHave, endsWith, endsWith, hasAtLeastOneElementOfType, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameElementsAs, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, isSubsetOf, isSubsetOf, noneMatch, noneSatisfy, startsWith
public org.assertj.core.api.IntegerAssert assertSize()
public org.assertj.core.api.ObjectAssert<R> first()
first
in class org.assertj.core.api.AbstractIterableAssert<MetadatasListAssert<R extends io.fabric8.kubernetes.api.model.HasMetadata>,List<? extends R extends io.fabric8.kubernetes.api.model.HasMetadata>,R extends io.fabric8.kubernetes.api.model.HasMetadata,org.assertj.core.api.ObjectAssert<R extends io.fabric8.kubernetes.api.model.HasMetadata>>
public org.assertj.core.api.ObjectAssert<R> last()
last
in class org.assertj.core.api.AbstractIterableAssert<MetadatasListAssert<R extends io.fabric8.kubernetes.api.model.HasMetadata>,List<? extends R extends io.fabric8.kubernetes.api.model.HasMetadata>,R extends io.fabric8.kubernetes.api.model.HasMetadata,org.assertj.core.api.ObjectAssert<R extends io.fabric8.kubernetes.api.model.HasMetadata>>
public R hasName(String name)
public AI filterLabel(String key, String value)
Copyright © 2020. All rights reserved.