Groovy Documentation

lsst.gruth.grutils
[Groovy] Class AssertionReport

java.lang.Object
  lsst.gruth.grutils.AssertionReport
All Implemented Interfaces:
java.io.Serializable

class AssertionReport

Generated by assertion methods. Gru assertions do not fail at once when evaluated: AssertionReport keeps the result of an assertion evaluation: the test overall result is the "worst" contained in all AssertionReports (see RawDiagnostic order to evaluate Result order).

There is an exception to this rule: if the force boolean is used the result of the test is forced to the first "forced" assertion (this happens for example when an exception is fired: the test result may be temporarily failed but if the exception is expected the assertion forces to SUCCESS).

Authors:
bamade


Property Summary
boolean force

java.lang.String message

RawDiagnostic result

 
Constructor Summary
AssertionReport(java.lang.String message, RawDiagnostic result)

AssertionReport(boolean force, java.lang.String message, RawDiagnostic result)

 
Method Summary
java.lang.String toString()

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Property Detail

force

boolean force


message

java.lang.String message


result

RawDiagnostic result


 
Constructor Detail

AssertionReport

AssertionReport(java.lang.String message, RawDiagnostic result)


AssertionReport

AssertionReport(boolean force, java.lang.String message, RawDiagnostic result)


 
Method Detail

toString

java.lang.String toString()


 

Groovy Documentation