Class ExceptionResult
- java.lang.Object
-
- de.rwth.swc.coffee4j.junit.engine.result.ExceptionResult
-
- All Implemented Interfaces:
ExecutionResult
public class ExceptionResult extends Object implements ExecutionResult
Class used to wrapExceptions.
-
-
Constructor Summary
Constructors Constructor Description ExceptionResult(Exception thrownException, boolean isConstraintGenerationEnabled)
-
-
-
Constructor Detail
-
ExceptionResult
public ExceptionResult(Exception thrownException, boolean isConstraintGenerationEnabled)
- Parameters:
thrownException-Exceptionto wrap.isConstraintGenerationEnabled- flag that indicates whether constraint-generation is enabled. If yes,equals(Object)delivers ternary result, otherwise a binary result.
-
-
Method Detail
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classObject- Parameters:
o- result to compare.- Returns:
- if the two results cause the same
Exception, it returns true when testing and anErrorConstraintExceptionwhen generating constraints. It returns false if the two results are not equal.
-
-