|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.wpi.ejutr.logger.LogAssertion
public class LogAssertion
Object representing assertions made within EJUTR. The contents of this object are later parsed into a string and written to a JUnit Test Method.
Field Summary |
---|
Fields inherited from interface edu.wpi.ejutr.logger.EJUTRLogEntry |
---|
ASSERTION, METHOD_INVOKATION, OBJECT_ADDITION, OBJECT_REMOVAL |
Constructor Summary | |
---|---|
LogAssertion(java.lang.String lhs,
boolean assertResult)
constructor. |
|
LogAssertion(java.lang.String lhs,
java.lang.String comparison,
java.lang.String rhs,
boolean assertResult)
constructor. |
Method Summary | |
---|---|
int |
getLogEntryType()
Returns the type of log entry this is. |
java.lang.String |
to_String()
Returns a string representation of the log entry. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogAssertion(java.lang.String lhs, boolean assertResult)
lhs
- the left-hand-side of the assertion.assertResult
- the expected result of the assertion, either true or false.public LogAssertion(java.lang.String lhs, java.lang.String comparison, java.lang.String rhs, boolean assertResult)
lhs
- the left-hand-side of the assertion.comparison
- the comparison operator used within this assertion.rhs
- the right-hand-side of the assertion.assertResult
- the expected result of the assertion.Method Detail |
---|
public java.lang.String to_String()
EJUTRLogEntry
to_String
in interface EJUTRLogEntry
public int getLogEntryType()
EJUTRLogEntry
getLogEntryType
in interface EJUTRLogEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |