| Modifier and Type | Field and Description |
|---|---|
| private List | |
| public static final boolean | |
| public static final boolean | |
| public static final boolean | |
| private boolean | |
| private boolean | |
| public static final Configuration | |
| private Consumer | |
| private boolean | |
| public static final boolean | |
| private boolean | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private int | |
| private int | |
| private int | |
| public static final PreferredAssumptionException | |
| private PreferredAssumptionException | |
| public static final boolean | |
| private boolean | |
| public static final boolean | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addAdditionalDateFormats(DateFormat...
the date formats AssertJ will use in date assertions in addition the default ones. additionalDateFormats)Add the given date formats AssertJ will use in date assertions. |
| public List | Returns: the date formats AssertJ will use in date assertions in addition the default ones.AssertJ uses defaults date formats in date assertions, this property let's you register additional ones (default there are no additional date formats). |
| public void | |
| public void | |
| public boolean | Returns: whether the extractor considers bare-named property methods likeString name().Returns whether the extractor considers bare-named property methods like |
| public boolean | Returns: whether private fields comparison is enabled.Returns whether private fields comparison is enabled. |
| public String | |
| private String | |
| private String | |
| public Consumer | |
| public boolean | Returns: whether private fields comparison is enabled.Returns whether private fields comparison is enabled. |
| pack-priv boolean | |
| public boolean | Returns: whether AssertJ will use lenient parsing mode for default date formats.Returns whether AssertJ will use lenient parsing mode for default date formats. |
| public int | Returns: the maximum length for an iterable/array to be displayed on one line.Returns how many elements at most from one iterable/array/map will be displayed in error messages. |
| public int | Returns: the maximum length for an iterable/array to be displayed on one line.Returns the maximum length for an iterable/array to be displayed on one line. |
| public int | Returns: the maximum number of lines for a stacktrace to be displayed on one throw.Returns the maximum number of lines for a stacktrace to be displayed on one throw. |
| public PreferredAssumptionException | Returns: the assumption exception to throw.Returns which exception is thrown if an assumption is not met. |
| public boolean | |
| public boolean | Returns: whether AssertJ related elements are removed from assertion errors stack trace.Returns whether AssertJ related elements are removed from assertion errors stack trace. |
| public Representation | |
| public void | setAdditionalDateFormats(List<DateFormat>
the date formats AssertJ will use in date assertions in addition the default ones. additionalDateFormats)Returns the additional date formats AssertJ will use in date assertions. |
| public void | setBareNamePropertyExtraction(boolean
whether the extractor considers bare-named property methods. bareNamePropertyExtraction)Sets whether the extractor considers bare-named property methods like |
| public void | setComparingPrivateFields(boolean
whether private fields comparison is enabled. comparingPrivateFields)Sets whether private fields comparison is enabled. |
| public void | |
| public void | |
| public void | setExtractingPrivateFields(boolean
whether private fields comparison is enabled. extractingPrivateFields)Sets whether private fields comparison is enabled. |
| public void | setLenientDateParsing(boolean
whether AssertJ will use lenient parsing mode for default date formats. lenientDateParsing)Returns whether AssertJ will use lenient parsing mode for default date formats. |
| public void | setMaxElementsForPrinting(int
the maximum length for an iterable/array to be displayed on one line. maxElementsForPrinting)Sets the threshold for how many elements at most from one iterable/array/map will be displaye in error messages. |
| public void | setMaxLengthForSingleLineDescription(int
the maximum length for an iterable/array to be displayed on one line. maxLengthForSingleLineDescription)Sets the maximum length for an iterable/array to be displayed on one line. |
| public void | setMaxStackTraceElementsDisplayed(int
the maximum number of lines for a stacktrace to be displayed on one throw. maxStackTraceElementsDisplayed)Returns the maximum number of lines for a stacktrace to be displayed on one throw. |
| public void | setPreferredAssumptionException(PreferredAssumptionException
the preferred exception to use with preferredAssumptionException)Assumptions.Sets which exception is thrown if an assumption is not met. |
| public void | |
| public void | setRemoveAssertJRelatedElementsFromStackTrace(boolean
whether AssertJ related elements are removed from assertion errors stack trace. removeAssertJRelatedElementsFromStackTrace)Returns whether AssertJ related elements are removed from assertion errors stack trace. |
| additionalDateFormats | back to summary |
|---|---|
| private List<DateFormat> additionalDateFormats | |
| ALLOW_COMPARING_PRIVATE_FIELDS | back to summary |
|---|---|
| public static final boolean ALLOW_COMPARING_PRIVATE_FIELDS | |
| ALLOW_EXTRACTING_PRIVATE_FIELDS | back to summary |
|---|---|
| public static final boolean ALLOW_EXTRACTING_PRIVATE_FIELDS | |
| BARE_NAME_PROPERTY_EXTRACTION_ENABLED | back to summary |
|---|---|
| public static final boolean BARE_NAME_PROPERTY_EXTRACTION_ENABLED | |
| bareNamePropertyExtraction | back to summary |
|---|---|
| private boolean bareNamePropertyExtraction | |
| comparingPrivateFields | back to summary |
|---|---|
| private boolean comparingPrivateFields | |
| DEFAULT_CONFIGURATION | back to summary |
|---|---|
| public static final Configuration DEFAULT_CONFIGURATION | |
| descriptionConsumer | back to summary |
|---|---|
| private Consumer<Description> descriptionConsumer | |
| extractingPrivateFields | back to summary |
|---|---|
| private boolean extractingPrivateFields | |
| LENIENT_DATE_PARSING | back to summary |
|---|---|
| public static final boolean LENIENT_DATE_PARSING | |
| lenientDateParsing | back to summary |
|---|---|
| private boolean lenientDateParsing | |
| MAX_ELEMENTS_FOR_PRINTING | back to summary |
|---|---|
| public static final int MAX_ELEMENTS_FOR_PRINTING | |
| MAX_INDICES_FOR_PRINTING | back to summary |
|---|---|
| public static final int MAX_INDICES_FOR_PRINTING | |
| MAX_LENGTH_FOR_SINGLE_LINE_DESCRIPTION | back to summary |
|---|---|
| public static final int MAX_LENGTH_FOR_SINGLE_LINE_DESCRIPTION | |
| MAX_STACKTRACE_ELEMENTS_DISPLAYED | back to summary |
|---|---|
| public static final int MAX_STACKTRACE_ELEMENTS_DISPLAYED | |
| maxElementsForPrinting | back to summary |
|---|---|
| private int maxElementsForPrinting | |
| maxLengthForSingleLineDescription | back to summary |
|---|---|
| private int maxLengthForSingleLineDescription | |
| maxStackTraceElementsDisplayed | back to summary |
|---|---|
| private int maxStackTraceElementsDisplayed | |
| PREFERRED_ASSUMPTION_EXCEPTION | back to summary |
|---|---|
| public static final PreferredAssumptionException PREFERRED_ASSUMPTION_EXCEPTION | |
| preferredAssumptionException | back to summary |
|---|---|
| private PreferredAssumptionException preferredAssumptionException | |
| PRINT_ASSERTIONS_DESCRIPTION_ENABLED | back to summary |
|---|---|
| public static final boolean PRINT_ASSERTIONS_DESCRIPTION_ENABLED | |
| printAssertionsDescription | back to summary |
|---|---|
| private boolean printAssertionsDescription | |
| REMOVE_ASSERTJ_RELATED_ELEMENTS_FROM_STACK_TRACE | back to summary |
|---|---|
| public static final boolean REMOVE_ASSERTJ_RELATED_ELEMENTS_FROM_STACK_TRACE | |
| removeAssertJRelatedElementsFromStackTrace | back to summary |
|---|---|
| private boolean removeAssertJRelatedElementsFromStackTrace | |
| Configuration | back to summary |
|---|---|
| public Configuration() | |
| addAdditionalDateFormats | back to summary |
|---|---|
| public void addAdditionalDateFormats(DateFormat... additionalDateFormats) Add the given date formats AssertJ will use in date assertions.
See
Note that this change will only be effective once
| |
| additionalDateFormats | back to summary |
|---|---|
| public List AssertJ uses defaults date formats in date assertions, this property let's you register additional ones (default there are no additional date formats).
See
| |
| apply | back to summary |
|---|---|
| public void apply() Applies this configuration to AssertJ. | |
| applyAndDisplay | back to summary |
|---|---|
| public void applyAndDisplay() Applies this configuration to AssertJ and prints it. | |
| bareNamePropertyExtractionEnabled | back to summary |
|---|---|
| public boolean bareNamePropertyExtractionEnabled() Returns whether the extractor considers bare-named property methods like
See
| |
| comparingPrivateFieldsEnabled | back to summary |
|---|---|
| public boolean comparingPrivateFieldsEnabled() Returns whether private fields comparison is enabled. Default is true.
See
| |
| describe | back to summary |
|---|---|
| public String describe() | |
| describe | back to summary |
|---|---|
| private String describe(DateFormat dateFormat) | |
| describeAdditionalDateFormats | back to summary |
|---|---|
| private String describeAdditionalDateFormats() | |
| descriptionConsumer | back to summary |
|---|---|
| public Consumer | |
| extractingPrivateFieldsEnabled | back to summary |
|---|---|
| public boolean extractingPrivateFieldsEnabled() Returns whether private fields comparison is enabled. Default is true.
See
| |
| hasCustomRepresentation | back to summary |
|---|---|
| pack-priv boolean hasCustomRepresentation() | |
| lenientDateParsingEnabled | back to summary |
|---|---|
| public boolean lenientDateParsingEnabled() Returns whether AssertJ will use lenient parsing mode for default date formats. Default is false.
See
| |
| maxElementsForPrinting | back to summary |
|---|---|
| public int maxElementsForPrinting() Returns how many elements at most from one iterable/array/map will be displayed in error messages. Default is 1000.
See
| |
| maxLengthForSingleLineDescription | back to summary |
|---|---|
| public int maxLengthForSingleLineDescription() Returns the maximum length for an iterable/array to be displayed on one line. Default is 80.
See
| |
| maxStackTraceElementsDisplayed | back to summary |
|---|---|
| public int maxStackTraceElementsDisplayed() Returns the maximum number of lines for a stacktrace to be displayed on one throw. Default is 3.
See
| |
| preferredAssumptionException | back to summary |
|---|---|
| public PreferredAssumptionException preferredAssumptionException() Returns which exception is thrown if an assumption is not met.
See
| |
| printAssertionsDescription | back to summary |
|---|---|
| public boolean printAssertionsDescription() | |
| removeAssertJRelatedElementsFromStackTraceEnabled | back to summary |
|---|---|
| public boolean removeAssertJRelatedElementsFromStackTraceEnabled() Returns whether AssertJ related elements are removed from assertion errors stack trace. Default is true.
See
| |
| representation | back to summary |
|---|---|
public Representation representation()
| |
| setAdditionalDateFormats | back to summary |
|---|---|
| public void setAdditionalDateFormats(List<DateFormat> additionalDateFormats) Returns the additional date formats AssertJ will use in date assertions.
See
Note that this change will only be effective once
| |
| setBareNamePropertyExtraction | back to summary |
|---|---|
| public void setBareNamePropertyExtraction(boolean bareNamePropertyExtraction) Sets whether the extractor considers bare-named property methods like
See
Note that this change will only be effective once
| |
| setComparingPrivateFields | back to summary |
|---|---|
| public void setComparingPrivateFields(boolean comparingPrivateFields) Sets whether private fields comparison is enabled.
See
Note that this change will only be effective once
| |
| setDefaults | back to summary |
|---|---|
| public void setDefaults() Set all configuration settings to their default values again. | |
| setDescriptionConsumer | back to summary |
|---|---|
| public void setDescriptionConsumer(Consumer<Description> descriptionConsumer) | |
| setExtractingPrivateFields | back to summary |
|---|---|
| public void setExtractingPrivateFields(boolean extractingPrivateFields) Sets whether private fields comparison is enabled.
See
Note that this change will only be effective once
| |
| setLenientDateParsing | back to summary |
|---|---|
| public void setLenientDateParsing(boolean lenientDateParsing) Returns whether AssertJ will use lenient parsing mode for default date formats.
See
Note that this change will only be effective once
| |
| setMaxElementsForPrinting | back to summary |
|---|---|
| public void setMaxElementsForPrinting(int maxElementsForPrinting) Sets the threshold for how many elements at most from one iterable/array/map will be displaye in error messages.
See
Note that this change will only be effective once
| |
| setMaxLengthForSingleLineDescription | back to summary |
|---|---|
| public void setMaxLengthForSingleLineDescription(int maxLengthForSingleLineDescription) Sets the maximum length for an iterable/array to be displayed on one line.
See
Note that this change will only be effective once
| |
| setMaxStackTraceElementsDisplayed | back to summary |
|---|---|
| public void setMaxStackTraceElementsDisplayed(int maxStackTraceElementsDisplayed) Returns the maximum number of lines for a stacktrace to be displayed on one throw.
See
Note that this change will only be effective once
| |
| setPreferredAssumptionException | back to summary |
|---|---|
| public void setPreferredAssumptionException(PreferredAssumptionException preferredAssumptionException) Sets which exception is thrown if an assumption is not met.
See
Note that this change will only be effective once
| |
| setPrintAssertionsDescriptionEnabled | back to summary |
|---|---|
| public void setPrintAssertionsDescriptionEnabled(boolean printAssertionsDescription) | |
| setRemoveAssertJRelatedElementsFromStackTrace | back to summary |
|---|---|
| public void setRemoveAssertJRelatedElementsFromStackTrace(boolean removeAssertJRelatedElementsFromStackTrace) Returns whether AssertJ related elements are removed from assertion errors stack trace.
See
Note that this change will only be effective once
| |