org.benow.web.test
Class TestStepImpl

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.TestStepImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, org.benow.repository.util.PersistentObject, TestStep

public class TestStepImpl
extends org.benow.repository.mapping.JSQLObject
implements TestStep

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
 
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
TestStepImpl()
           
 
Method Summary
static TestStep createFromCurrent()
          Create testedurl for current request (as discovered from RequestHandlerThread).
 TestResult getExpectedResult()
           
 TimeFormat getExpectedSince()
           
 java.util.List<java.lang.String> getHeaders()
           
 java.lang.String getMethod()
           
 java.util.List<java.lang.String> getParams()
           
 java.util.List<TestResult> getRuns()
           
 java.lang.String getURL()
           
 java.lang.String getUser()
           
 int hashCode()
           
 TestResult run()
          Runs step, recording and returning result
 void setExpected(TestResult 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, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestStepImpl

public TestStepImpl()
Method Detail

setExpected

public void setExpected(TestResult expected)

getExpectedSince

public TimeFormat getExpectedSince()

getHeaders

public java.util.List<java.lang.String> getHeaders()
Specified by:
getHeaders in interface TestStep

getMethod

public java.lang.String getMethod()
Specified by:
getMethod in interface TestStep

getParams

public java.util.List<java.lang.String> getParams()
Specified by:
getParams in interface TestStep

getURL

public java.lang.String getURL()
Specified by:
getURL in interface TestStep

createFromCurrent

public static TestStep createFromCurrent()
Create testedurl for current request (as discovered from RequestHandlerThread).

Returns:
See Also:
RequestHandlerThread

getExpectedResult

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

getRuns

public java.util.List<TestResult> getRuns()
Specified by:
getRuns in interface TestStep

run

public TestResult run()
Description copied from interface: TestStep
Runs step, recording and returning result

Specified by:
run in interface TestStep
Returns:

getUser

public java.lang.String getUser()
Specified by:
getUser in interface TestStep
Returns:
user to run the test as

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object