public abstract class TestExecutor extends Object
| Modifier and Type | Field and Description |
|---|---|
protected QueryGenerationFactory |
queryGenerationFactory
Used to transform TestCases to SPARQL Queries
|
| Constructor and Description |
|---|
TestExecutor(QueryGenerationFactory queryGenerationFactory)
Instantiates a new Test executor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTestExecutorMonitor(TestExecutorMonitor monitor)
Add test executor monitor / subscriber.
|
void |
cancel()
Cancel the current execution.
|
void |
clearTestExecutorMonitor()
Clears all test executor monitors.
|
boolean |
execute(TestSource testSource,
TestSuite testSuite)
Test execution for a Source against a TestSuite
|
protected abstract Collection<TestCaseResult> |
executeSingleTest(TestSource testSource,
TestCase testCase)
Executes single test.
|
void |
removeTestExecutorMonitor(TestExecutorMonitor monitor)
Remove a test executor monitor / subscriber.
|
protected final QueryGenerationFactory queryGenerationFactory
public TestExecutor(QueryGenerationFactory queryGenerationFactory)
queryGenerationFactory - a QueryGenerationFactory object.public void cancel()
protected abstract Collection<TestCaseResult> executeSingleTest(TestSource testSource, TestCase testCase) throws TestCaseExecutionException
testSource - the sourcetestCase - the test caseTestCaseExecutionException - the test case execution exceptionpublic boolean execute(TestSource testSource, TestSuite testSuite)
testSource - the source we want to testtestSuite - the test suite we test the source againstpublic void addTestExecutorMonitor(TestExecutorMonitor monitor)
monitor - the monitorpublic void removeTestExecutorMonitor(TestExecutorMonitor monitor)
monitor - the monitorpublic void clearTestExecutorMonitor()
Copyright © 2015. All rights reserved.