Package com.puppetlabs.geppetto.junitresult.util

Examples of com.puppetlabs.geppetto.junitresult.util.JunitresultAggregator


    return String.format("%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS%1$tz", date);
  }

  public void test_aggregatorSampleTest() throws IOException, TransformerException, ParserConfigurationException {
    JunitresultAggregator aggregator = new JunitresultAggregator();
    File root = TestDataProvider.getTestFile(new Path("testData/allresults/"));
    JunitResult result = aggregator.aggregate(root, root);
    assertTrue(result instanceof Testsuites);
    Testsuites testsuite = (Testsuites) result;
    assertEquals("allresults", testsuite.getName());
    assertEquals(1, testsuite.getErrors());
    assertEquals(13, testsuite.getTests());
View Full Code Here


      output.createNewFile();
    serializer.serialize(result, new FileOutputStream(output));
  }

  public void test_aggregatorSmokeTest() throws IOException, TransformerException, ParserConfigurationException {
    JunitresultAggregator aggregator = new JunitresultAggregator();
    File root = null;

    try {
      root = TestDataProvider.getTestFile(new Path("testData/test_results"));
      root.mkdir();

      FileUtils.unzip(TestDataProvider.getTestFile(new Path("testData/test_results.zip")), root);

      JunitResult result = aggregator.aggregate(root, root);
      assertTrue(result instanceof Testsuites);
      Testsuites testsuite = (Testsuites) result;
      assertEquals("test_results", testsuite.getName());
      assertEquals(3, testsuite.getErrors());
      assertEquals(1360, testsuite.getTests());
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.junitresult.util.JunitresultAggregator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.