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 wrapException
s.
-
-
Constructor Summary
Constructors Constructor Description ExceptionResult(Exception thrownException, boolean isConstraintGenerationEnabled)
-
-
-
Constructor Detail
-
ExceptionResult
public ExceptionResult(Exception thrownException, boolean isConstraintGenerationEnabled)
- Parameters:
thrownException
-Exception
to 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:
equals
in classObject
- Parameters:
o
- result to compare.- Returns:
- if the two results cause the same
Exception
, it returns true when testing and anErrorConstraintException
when generating constraints. It returns false if the two results are not equal.
-
-