Package org.mongounit.model
Class AssertionResult
java.lang.Object
org.mongounit.model.AssertionResult
AssertionResult class represents internal assertion result.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAssertionResult.AssertionResultBuilderclass is a builder pattern class for theAssertionResultclass. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.AssertionResult(boolean match, String message) Constructor. -
Method Summary
-
Constructor Details
-
AssertionResult
public AssertionResult()Default constructor. -
AssertionResult
Constructor.- Parameters:
match- Flag to indicate if the match was found or not.message- Optional message, which is usually used as an assertion failure message to give more details.
-
-
Method Details
-
builder
- Returns:
- Instance of the builder pattern version of the
AssertionResultclass.
-
isMatch
public boolean isMatch()- Returns:
- Flag to indicate if the match was found or not.
-
getMessage
- Returns:
- Optional message, which is usually used as an assertion failure message to give more details.
-
setMatch
public void setMatch(boolean match) - Parameters:
match- Flag to indicate if the match was found or not.
-
setMessage
- Parameters:
message- Optional message, which is usually used as an assertion failure message to give more details.
-
equals
-
hashCode
public int hashCode() -
toString
-