org.squashtest.tm.domain.testcase
Class TestStep

java.lang.Object
  extended by org.squashtest.tm.domain.testcase.TestStep
Direct Known Subclasses:
ActionTestStep, CallTestStep

@Entity
public abstract class TestStep
extends Object


Constructor Summary
TestStep()
           
 
Method Summary
abstract  void accept(TestStepVisitor visitor)
           
abstract  TestStep createCopy()
          Should create a transient copy of this TestStep according to business rules.
abstract  List<ExecutionStep> createExecutionSteps(Dataset dataset)
           
 Long getId()
           
 int getIndex()
           
 TestCaseLibrary getLibrary()
           
 TestCase getTestCase()
           
 void setTestCase(TestCase testCase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestStep

public TestStep()
Method Detail

getId

public Long getId()

setTestCase

public void setTestCase(@NotNull
                        TestCase testCase)

getTestCase

public TestCase getTestCase()

getLibrary

public TestCaseLibrary getLibrary()

getIndex

public int getIndex()
Returns:
TestCase.getPositionOfStep(long) or -1 if testCase is null
Throws:
{@link - UnknownElementException}
See Also:
TestCase#getPositionOfStep(long)}

createCopy

public abstract TestStep createCopy()
Should create a transient copy of this TestStep according to business rules. Business rules should be described by implementor in a unit test case.

Returns:
copy, should never return null.

accept

public abstract void accept(TestStepVisitor visitor)

createExecutionSteps

public abstract List<ExecutionStep> createExecutionSteps(Dataset dataset)


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.