Package org.mongounit.model
Class AssertionResult
java.lang.Object
org.mongounit.model.AssertionResult
AssertionResult
class represents internal assertion result.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AssertionResult.AssertionResultBuilder
class is a builder pattern class for theAssertionResult
class. -
Constructor Summary
ConstructorDescriptionDefault 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
AssertionResult
class.
-
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
-