Uses of Annotation Interface
org.junit.platform.commons.annotation.Contract
Packages that use Contract
Package
Description
Common support APIs provided by the JUnit Platform.
Internal common utilities for JUnit.
-
Uses of Contract in org.junit.platform.commons.support
Methods in org.junit.platform.commons.support with annotations of type ContractModifier and TypeMethodDescriptionstatic booleanAnnotationSupport.isAnnotated(@Nullable AnnotatedElement element, Class<? extends Annotation> annotationType) Determine if an annotation ofannotationTypeis either present or meta-present on the suppliedelement.static booleanAnnotationSupport.isAnnotated(@Nullable Optional<? extends AnnotatedElement> element, Class<? extends Annotation> annotationType) Determine if an annotation ofannotationTypeis either present or meta-present on the supplied optionalelement. -
Uses of Contract in org.junit.platform.commons.util
Methods in org.junit.platform.commons.util with annotations of type ContractModifier and TypeMethodDescriptionstatic voidAssert that the suppliedpredicateistrue.static voidAssert that the suppliedpredicateistrue.static booleanStringUtils.containsIsoControlCharacter(@Nullable String str) Determine if the suppliedStringcontains any ISO control characters.static <T extends Collection<?>>
@Nullable TPreconditions.containsNoNullElements(@Nullable T collection, String message) Assert that the supplied collection contains nonullelements.static <T extends Collection<?>>
@Nullable TPreconditions.containsNoNullElements(@Nullable T collection, Supplier<String> messageSupplier) Assert that the supplied collection contains nonullelements.static <T> T @Nullable []Preconditions.containsNoNullElements(T @Nullable [] array, String message) Assert that the supplied array contains nonullelements.static <T> T @Nullable []Preconditions.containsNoNullElements(T @Nullable [] array, Supplier<String> messageSupplier) Assert that the supplied array contains nonullelements.static booleanStringUtils.containsWhitespace(@Nullable String str) Determine if the suppliedStringcontains any whitespace characters.static booleanStringUtils.doesNotContainIsoControlCharacter(@Nullable String str) Determine if the suppliedStringdoes not contain any ISO control characters.static booleanStringUtils.doesNotContainWhitespace(@Nullable String str) Determine if the suppliedStringdoes not contain any whitespace characters.static booleanAnnotationUtils.isAnnotated(@Nullable AnnotatedElement element, Class<? extends Annotation> annotationType) Determine if an annotation ofannotationTypeis either present or meta-present on the suppliedelement.static booleanAnnotationUtils.isAnnotated(@Nullable Optional<? extends AnnotatedElement> element, Class<? extends Annotation> annotationType) Determine if an annotation ofannotationTypeis either present or meta-present on the supplied optionalelement.static booleanDetermine if the suppliedStringis blank (i.e.,nullor consisting only of whitespace characters).static booleanStringUtils.isNotBlank(@Nullable String str) static StringAssert that the suppliedStringis not blank.static StringAssert that the suppliedStringis not blank.static int[]Assert that the supplied array is neithernullnor empty.static <T extends Collection<?>>
TAssert that the suppliedCollectionis neithernullnor empty.static <T extends Collection<?>>
TAssert that the suppliedCollectionis neithernullnor empty.static <T> T[]Assert that the supplied array is neithernullnor empty.static <T> T[]Assert that the supplied array is neithernullnor empty.static <T> TAssert that the suppliedObjectis notnull.static <T> TAssert that the suppliedObjectis notnull.static @Nullable StringStringUtils.replaceIsoControlCharacters(@Nullable String str, String replacement) Replace all ISO control characters in the suppliedString.static @Nullable StringStringUtils.replaceWhitespaceCharacters(@Nullable String str, String replacement) Replace all whitespace characters in the suppliedString.static RuntimeExceptionExceptionUtils.throwAsUncheckedException(Throwable t) Throw the suppliedThrowable, masked as an unchecked exception.