use of org.apache.qpid.disttest.controller.config.Config in project qpid-broker-j by apache.
the class ControllerRunner method runTest.
private ResultsForAllTests runTest(Controller controller, String testConfigFile) {
final Config testConfig = buildTestConfigFrom(testConfigFile);
controller.setConfig(testConfig);
ResultsForAllTests rawResultsForAllTests = controller.runAllTests();
ResultsForAllTests resultsForAllTests = _aggregator.aggregateResults(rawResultsForAllTests);
_resultsWriter.writeResults(resultsForAllTests, testConfigFile);
return resultsForAllTests;
}
use of org.apache.qpid.disttest.controller.config.Config in project qpid-broker-j by apache.
the class ControllerRunner method buildTestConfigFrom.
private Config buildTestConfigFrom(String testConfigFile) {
ConfigReader configReader = new ConfigReader();
Config testConfig;
try {
testConfig = configReader.getConfigFromFile(testConfigFile);
} catch (IOException e) {
throw new DistributedTestException("Exception while loading test config from '" + testConfigFile + "'", e);
}
return testConfig;
}
use of org.apache.qpid.disttest.controller.config.Config in project qpid-broker-j by apache.
the class ControllerTest method testControllerRejectsEmptyConfiguration.
@Test
public void testControllerRejectsEmptyConfiguration() {
Config configWithZeroClients = createMockConfig(0);
try {
_controller.setConfig(configWithZeroClients);
fail("Exception not thrown");
} catch (DistributedTestException e) {
// PASS
}
}
Aggregations