org.benow.web.test
Class TestResultImpl

java.lang.Object
  extended by org.benow.security.SecureObject
      extended by org.benow.repository.util.PersistentObjectImpl
          extended by org.benow.repository.mapping.JSQLObject
              extended by org.benow.web.test.TestResultImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, java.lang.Runnable, org.benow.repository.util.PersistentObject, TestResult

public class TestResultImpl
extends org.benow.repository.mapping.JSQLObject
implements TestResult

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.benow.repository.mapping.JSQLObject
org.benow.repository.mapping.JSQLObject.XSQLVersionDesc, org.benow.repository.mapping.JSQLObject.XSQLVersioned
 
Field Summary
 long runTime
           
 
Fields inherited from class org.benow.repository.util.PersistentObjectImpl
conn, recycled
 
Fields inherited from class org.benow.security.SecureObject
admin
 
Fields inherited from interface org.benow.repository.util.PersistentObject
FIELD_NAME_KEY
 
Constructor Summary
protected TestResultImpl()
           
  TestResultImpl(TestStepImpl step)
           
 
Method Summary
 java.lang.String getError()
           
 java.lang.String getHTML()
           
 long getRunTime()
           
 TimeFormat getSince()
           
 TestStep getStep()
           
 TestStep getURL()
           
 boolean passed()
           
 void run()
           
 void setHTML(java.lang.String html)
           
 void stampAsExpected()
          Stamps this test result as the result to be expected.
 
Methods inherited from class org.benow.repository.mapping.JSQLObject
fetchExpectedField, fetchField, fetchFieldQuiet, forgetField, isFetched, isLocked, lock, refetchFieldQuiet, setFetched
 
Methods inherited from class org.benow.repository.util.PersistentObjectImpl
compareTo, doIsTransient, equals, getKey, isTransient, recycle, remove, remove, repositoryAfterLoad, repositoryAfterPersist, repositoryAfterTransient, repositoryBeforePersist, repositoryBeforeTransient, setKey, toString, update, update
 
Methods inherited from class org.benow.security.SecureObject
assertOnePermission, assertPermission, assertPermission, declarePermission, declareViewPermission, declareViewPermission
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

runTime

public long runTime
Constructor Detail

TestResultImpl

protected TestResultImpl()

TestResultImpl

public TestResultImpl(TestStepImpl step)
Method Detail

getSince

public TimeFormat getSince()

run

public void run()
Specified by:
run in interface java.lang.Runnable

getHTML

public java.lang.String getHTML()
Specified by:
getHTML in interface TestResult

getRunTime

public long getRunTime()
Specified by:
getRunTime in interface TestResult
Returns:
the time this test was last run.

passed

public boolean passed()
Specified by:
passed in interface TestResult

getURL

public TestStep getURL()
Specified by:
getURL in interface TestResult

setHTML

public void setHTML(java.lang.String html)

getStep

public TestStep getStep()
Specified by:
getStep in interface TestResult

getError

public java.lang.String getError()
Specified by:
getError in interface TestResult
Returns:
dump of error, or null if clean run

stampAsExpected

public void stampAsExpected()
Stamps this test result as the result to be expected. Nukes all other runs of the test.