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(Source source,
TestSuite testSuite,
int delay)
Test execution for a Source against a TestSuite
|
protected abstract Collection<TestCaseResult> |
executeSingleTest(Source source,
TestCase testCase)
Executes single test.
|
void |
removeTestExecutorMonitor(TestExecutorMonitor monitor)
Remove a test executor monitor / subscriber.
|
protected final QueryGenerationFactory queryGenerationFactory
public TestExecutor(QueryGenerationFactory queryGenerationFactory)
public void cancel()
protected abstract Collection<TestCaseResult> executeSingleTest(Source source, TestCase testCase) throws TestCaseExecutionException
source - the sourcetestCase - the test caseTestCaseExecutionException - the test case execution exceptionpublic boolean execute(Source source, TestSuite testSuite, int delay)
source - the source we want to testtestSuite - the test suite we test the source againstdelay - delay between sparql queriespublic void addTestExecutorMonitor(TestExecutorMonitor monitor)
monitor - the monitorpublic void removeTestExecutorMonitor(TestExecutorMonitor monitor)
monitor - the monitorpublic void clearTestExecutorMonitor()
Copyright © 2014. All rights reserved.