Package com.adaptris.tester.runtime
Class ServiceTest
- java.lang.Object
-
- com.adaptris.tester.runtime.ServiceTest
-
- All Implemented Interfaces:
TestComponent
,UniqueIdAwareTestComponent
public class ServiceTest extends java.lang.Object implements UniqueIdAwareTestComponent
Main class for service tester. Use other components fromtester
package to define tests execution. The client classTestExecutor
create and manage instances of this class.In the service test configuration this class is aliased as
service-test
which is the preferred alternative to the fully qualified classname when building your configuration.
-
-
Constructor Summary
Constructors Constructor Description ServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTestList(TestList adapterTestList)
JUnitReportTestResults
execute()
java.util.Map<java.lang.String,java.lang.String>
getHelperProperties()
java.util.List<Helper>
getHelpers()
ParentSource
getSource()
The source of the XML configurationTestClient
getTestClient()
java.util.List<TestList>
getTestLists()
java.lang.String
getUniqueId()
Return the unique id.java.io.File
getWorkingDirectory()
void
setHelpers(java.util.List<Helper> helpers)
void
setSource(ParentSource source)
The source of the XML configurationvoid
setTestClient(TestClient testClient)
void
setTestLists(java.util.List<TestList> adapterTestLists)
void
setUniqueId(java.lang.String uniqueId)
void
setWorkingDirectory(java.io.File workingDirectory)
-
-
-
Method Detail
-
setUniqueId
public void setUniqueId(java.lang.String uniqueId)
-
getUniqueId
public java.lang.String getUniqueId()
Description copied from interface:UniqueIdAwareTestComponent
Return the unique id.- Specified by:
getUniqueId
in interfaceUniqueIdAwareTestComponent
- Returns:
- The unique id
-
setTestClient
public void setTestClient(TestClient testClient)
-
getTestClient
public TestClient getTestClient()
-
getSource
public ParentSource getSource()
The source of the XML configuration- Returns:
- source
-
setSource
public void setSource(ParentSource source)
The source of the XML configuration- Parameters:
source
-
-
setHelpers
public void setHelpers(java.util.List<Helper> helpers)
-
getHelpers
public java.util.List<Helper> getHelpers()
-
getWorkingDirectory
public java.io.File getWorkingDirectory()
-
setWorkingDirectory
public void setWorkingDirectory(java.io.File workingDirectory)
-
getHelperProperties
public java.util.Map<java.lang.String,java.lang.String> getHelperProperties()
-
setTestLists
public void setTestLists(java.util.List<TestList> adapterTestLists)
-
getTestLists
public java.util.List<TestList> getTestLists()
-
addTestList
public void addTestList(TestList adapterTestList)
-
execute
public JUnitReportTestResults execute() throws ServiceTestException
- Throws:
ServiceTestException
-
-