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