Package com.puppetlabs.geppetto.junitresult.util

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


    assertEquals("allresults", testsuite.getName());
    assertEquals(1, testsuite.getErrors());
    assertEquals(13, testsuite.getTests());
    assertEquals(7, testsuite.getFailures());

    JunitresultDomSerializer serializer = new JunitresultDomSerializer();
    File outputDir = TestDataProvider.getTestFile(new Path("output/"));
    File output = new File(outputDir, "sample_result.xml");
    if(!output.exists())
      output.createNewFile();
    serializer.serialize(result, new FileOutputStream(output));
  }
View Full Code Here


        String correctTimestamp = correctTimestamps.get(ts.getName());
        if(correctTimestamp != null)
          assertEquals(formatDate(ts.getTimestamp()), correctTimestamp);
      }

      JunitresultDomSerializer serializer = new JunitresultDomSerializer();
      File outputDir = TestDataProvider.getTestFile(new Path("output/"));
      File output = new File(outputDir, "smoke_result.xml");
      if(!output.exists())
        output.createNewFile();
      serializer.serialize(result, new FileOutputStream(output));
    }
    finally {
      if(root != null)
        deleteRecursiveContent(root, true);
    }
View Full Code Here

TOP

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

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.