Uses of Class
com.github.cowwoc.requirements.Requirements
Packages that use Requirements
-
Uses of Requirements in com.github.cowwoc.requirements
Methods in com.github.cowwoc.requirements that return RequirementsModifier and TypeMethodDescriptionRequirements.copy()
Returns a copy of this configuration.static Requirements
DefaultRequirements.withAssertionsDisabled()
Indicates thatassertThat()
shouldn't do anything.Requirements.withAssertionsDisabled()
static Requirements
DefaultRequirements.withAssertionsEnabled()
Indicates thatassertThat()
should verify requirements.Requirements.withAssertionsEnabled()
static Requirements
DefaultRequirements.withCleanStackTrace()
Indicates that stack trace references to this library should be removed.Requirements.withCleanStackTrace()
static Requirements
DefaultRequirements.withConfiguration
(com.github.cowwoc.requirements.java.Configuration configuration) Replaces the configuration.Requirements.withConfiguration
(com.github.cowwoc.requirements.java.Configuration newConfig) static Requirements
DefaultRequirements.withContext
(String name, Object value) Adds or updates contextual information associated with the exception message.Requirements.withContext
(String name, Object value) static Requirements
DefaultRequirements.withDiff()
Indicates that exceptions should show the difference between the actual and expected values.Requirements.withDiff()
Requirements.withoutAnyContext()
static Requirements
DefaultRequirements.withoutCleanStackTrace()
Indicates that stack trace references to this library should be kept.Requirements.withoutCleanStackTrace()
Requirements.withoutContext
(String name) static Requirements
DefaultRequirements.withoutDiff()
Indicates that exceptions should not show the difference between the actual and expected values.Requirements.withoutDiff()
static <T> Requirements
DefaultRequirements.withoutStringConverter
(Class<T> type) Indicates that an object'stoString()
method should be used to convert it to a String.<T> Requirements
Requirements.withoutStringConverter
(Class<T> type) static <T> Requirements
DefaultRequirements.withStringConverter
(Class<T> type, Function<T, String> converter) Indicates that a function should be used to convert an object to a String.<T> Requirements
Requirements.withStringConverter
(Class<T> type, Function<T, String> converter) Method parameters in com.github.cowwoc.requirements with type arguments of type RequirementsModifier and TypeMethodDescriptionstatic void
DefaultRequirements.assertThat
(Consumer<Requirements> requirements) Verifies requirements only if assertions are enabled.void
Requirements.assertThat
(Consumer<Requirements> requirements) Verifies requirements only ifassertions are enabled
.static <V> V
DefaultRequirements.assertThatAndReturn
(Function<Requirements, V> requirements) Verifies requirements only ifassertions are enabled
.<V> V
Requirements.assertThatAndReturn
(Function<Requirements, V> requirements) Verifies requirements only ifassertions are enabled
.