Search in sources :

Example 11 with ResultsForAllTests

use of org.apache.qpid.disttest.controller.ResultsForAllTests in project qpid-broker-j by apache.

the class CSVFormatterTest method testResultsFileWithWithOneRow.

@Test
public void testResultsFileWithWithOneRow() throws Exception {
    ResultsTestFixture resultsTestFixture = new ResultsTestFixture();
    ResultsForAllTests resultsForAllTests = resultsTestFixture.createResultsForAllTests();
    String output = _formatter.format(resultsForAllTests.getTestResults());
    String expectedOutput = readCsvOutputFileAsString("expectedOutput.csv");
    assertEquals(expectedOutput, output);
}
Also used : ResultsTestFixture(org.apache.qpid.disttest.results.ResultsTestFixture) ResultsForAllTests(org.apache.qpid.disttest.controller.ResultsForAllTests) Test(org.junit.Test)

Aggregations

ResultsForAllTests (org.apache.qpid.disttest.controller.ResultsForAllTests)11 Test (org.junit.Test)7 File (java.io.File)4 ITestResult (org.apache.qpid.disttest.results.aggregation.ITestResult)4 ParticipantResult (org.apache.qpid.disttest.message.ParticipantResult)3 Config (org.apache.qpid.disttest.controller.config.Config)2 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Context (javax.naming.Context)1 TestResult (org.apache.qpid.disttest.controller.TestResult)1 ParticipantAttribute (org.apache.qpid.disttest.message.ParticipantAttribute)1 ResultsTestFixture (org.apache.qpid.disttest.results.ResultsTestFixture)1