Class ApiSchemaAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<SELF,ACTUAL>
-
- org.assertj.core.api.AbstractIterableAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>
-
- org.assertj.core.api.AbstractCollectionAssert<SELF,ACTUAL,ELEMENT,ELEMENT_ASSERT>
-
- org.assertj.core.api.AbstractListAssert<ApiSchemaAssert,List<org.forgerock.api.annotations.Schema>,org.forgerock.api.annotations.Schema,org.assertj.core.api.ObjectAssert<org.forgerock.api.annotations.Schema>>
-
- org.forgerock.openam.test.apidescriptor.ApiSchemaAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<ApiSchemaAssert,List<org.forgerock.api.annotations.Schema>>,org.assertj.core.api.Descriptable<ApiSchemaAssert>,org.assertj.core.api.EnumerableAssert<ApiSchemaAssert,org.forgerock.api.annotations.Schema>,org.assertj.core.api.ExtensionPoints<ApiSchemaAssert,List<org.forgerock.api.annotations.Schema>>,org.assertj.core.api.IndexedObjectEnumerableAssert<ApiSchemaAssert,org.forgerock.api.annotations.Schema>,org.assertj.core.api.ObjectEnumerableAssert<ApiSchemaAssert,org.forgerock.api.annotations.Schema>
public final class ApiSchemaAssert extends org.assertj.core.api.AbstractListAssert<ApiSchemaAssert,List<org.forgerock.api.annotations.Schema>,org.forgerock.api.annotations.Schema,org.assertj.core.api.ObjectAssert<org.forgerock.api.annotations.Schema>>
This class represents theSchemaannotation.- Since:
- 14.0.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiSchemaAsserthasI18nDescriptions()Assert that all descriptions use i18n and that the keys have valid entries in the specifies resource bundle.ApiSchemaAsserthasI18nTitles()Assert that all titles use i18n and that the keys have valid entries in the specifies resource bundle.ApiSchemaAsserthasValidSchema()This convenience method will do all assertions necessary to validate that a resource schema is valid and that it conforms to the OpenAM conventions.protected ApiSchemaAssertnewAbstractIterableAssert(Iterable<? extends org.forgerock.api.annotations.Schema> iterable)protected org.assertj.core.api.ObjectAssert<org.forgerock.api.annotations.Schema>toAssert(org.forgerock.api.annotations.Schema value, String description)-
Methods inherited from class org.assertj.core.api.AbstractListAssert
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
-
Methods inherited from class org.assertj.core.api.AbstractIterableAssert
allMatch, allMatch, allSatisfy, allSatisfy, anyMatch, anyMatch, anySatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsAnyOfForProxy, containsExactly, containsExactlyElementsOf, containsExactlyForProxy, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsExactlyInAnyOrderForProxy, containsForProxy, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyForProxy, containsOnlyNulls, containsOnlyOnce, containsOnlyOnceElementsOf, containsOnlyOnceForProxy, containsSequence, containsSequence, containsSequenceForProxy, containsSubsequence, containsSubsequence, containsSubsequenceForProxy, doesNotContain, doesNotContainAnyElementsOf, doesNotContainForProxy, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSequenceForProxy, doesNotContainSubsequence, doesNotContainSubsequence, doesNotContainSubsequenceForProxy, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doNotHave, element, element, elements, endsWith, endsWith, endsWithForProxy, extracting, extracting, extracting, extracting, extracting, extracting, extractingForProxy, extractingResultOf, extractingResultOf, filteredOn, filteredOn, filteredOn, filteredOn, filteredOn, filteredOnAssertions, filteredOnAssertions, filteredOnNull, first, first, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtracting, flatExtractingForProxy, flatMap, flatMap, flatMap, flatMap, getComparatorsByType, getComparatorsForElementPropertyOrFieldTypes, hasAtLeastOneElementOfType, hasExactlyElementsOfTypes, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameElementsAs, hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, inBinary, inHexadecimal, isEmpty, isNotEmpty, isNullOrEmpty, isSubsetOf, isSubsetOf, isSubsetOfForProxy, last, last, map, map, map, navigationDescription, newAbstractIterableAssertForProxy, noneMatch, noneMatch, noneSatisfy, noneSatisfy, satisfiesExactly, satisfiesExactly, satisfiesExactlyForProxy, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrderForProxy, satisfiesOnlyOnce, satisfiesOnlyOnce, satisfiesOnlyOnceForProxy, singleElement, singleElement, size, startsWith, startsWithForProxy, usingComparatorForElementFieldsWithNames, usingComparatorForElementFieldsWithType, usingComparatorForType, usingElementComparatorIgnoringFields, usingElementComparatorOnFields, usingFieldByFieldElementComparator, usingRecursiveAssertion, usingRecursiveAssertion, usingRecursiveComparison, usingRecursiveComparison, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparator, usingRecursiveFieldByFieldElementComparatorIgnoringFields, usingRecursiveFieldByFieldElementComparatorOnFields, zipSatisfy
-
Methods inherited from class org.assertj.core.api.AbstractAssert
actual, areEqual, asInstanceOf, asList, assertionError, asString, descriptionText, doesNotHaveSameHashCodeAs, doesNotHaveToString, doesNotHaveToString, doesNotMatch, doesNotMatch, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, hashCode, hasSameHashCodeAs, hasToString, isElementOfCustomAssert, isInstanceOfSatisfying, isNull, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingEquals, usingEquals, withFailMessage, withRepresentation
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.assertj.core.api.EnumerableAssert
hasSameSizeAs, hasSameSizeAs, hasSize, hasSizeBetween, hasSizeGreaterThan, hasSizeGreaterThanOrEqualTo, hasSizeLessThan, hasSizeLessThanOrEqualTo, isEmpty, isNotEmpty, isNullOrEmpty
-
Methods inherited from interface org.assertj.core.api.ObjectEnumerableAssert
allMatch, allMatch, allSatisfy, allSatisfy, anyMatch, anyMatch, anySatisfy, anySatisfy, are, areAtLeast, areAtLeastOne, areAtMost, areExactly, areNot, contains, containsAll, containsAnyElementsOf, containsAnyOf, containsExactly, containsExactlyElementsOf, containsExactlyInAnyOrder, containsExactlyInAnyOrderElementsOf, containsNull, containsOnly, containsOnlyElementsOf, containsOnlyNulls, containsOnlyOnce, containsOnlyOnceElementsOf, containsSequence, containsSequence, containsSubsequence, containsSubsequence, doesNotContain, doesNotContainAnyElementsOf, doesNotContainNull, doesNotContainSequence, doesNotContainSequence, doesNotContainSubsequence, doesNotContainSubsequence, doesNotHaveAnyElementsOfTypes, doesNotHaveDuplicates, doNotHave, endsWith, endsWith, hasAtLeastOneElementOfType, hasExactlyElementsOfTypes, hasOnlyElementsOfType, hasOnlyElementsOfTypes, hasOnlyOneElementSatisfying, hasSameElementsAs, have, haveAtLeast, haveAtLeastOne, haveAtMost, haveExactly, isSubsetOf, isSubsetOf, noneMatch, noneMatch, noneSatisfy, noneSatisfy, satisfiesExactly, satisfiesExactly, satisfiesExactlyInAnyOrder, satisfiesExactlyInAnyOrder, satisfiesOnlyOnce, satisfiesOnlyOnce, startsWith
-
-
-
-
Method Detail
-
toAssert
protected org.assertj.core.api.ObjectAssert<org.forgerock.api.annotations.Schema> toAssert(org.forgerock.api.annotations.Schema value, String description)- Specified by:
toAssertin classorg.assertj.core.api.AbstractIterableAssert<ApiSchemaAssert,List<org.forgerock.api.annotations.Schema>,org.forgerock.api.annotations.Schema,org.assertj.core.api.ObjectAssert<org.forgerock.api.annotations.Schema>>
-
newAbstractIterableAssert
protected ApiSchemaAssert newAbstractIterableAssert(Iterable<? extends org.forgerock.api.annotations.Schema> iterable)
- Specified by:
newAbstractIterableAssertin classorg.assertj.core.api.AbstractIterableAssert<ApiSchemaAssert,List<org.forgerock.api.annotations.Schema>,org.forgerock.api.annotations.Schema,org.assertj.core.api.ObjectAssert<org.forgerock.api.annotations.Schema>>
-
hasI18nTitles
public ApiSchemaAssert hasI18nTitles()
Assert that all titles use i18n and that the keys have valid entries in the specifies resource bundle.- Returns:
- An instance of
ApiSchemaAssert.
-
hasI18nDescriptions
public ApiSchemaAssert hasI18nDescriptions()
Assert that all descriptions use i18n and that the keys have valid entries in the specifies resource bundle.- Returns:
- An instance of
ApiSchemaAssert.
-
hasValidSchema
public ApiSchemaAssert hasValidSchema()
This convenience method will do all assertions necessary to validate that a resource schema is valid and that it conforms to the OpenAM conventions.
-
-