use of de.dagere.kopeme.datastorage.XMLDataStorer in project peass by DaGeRe.
the class MavenTestExecutorMocker method writeValue.
public static synchronized void writeValue(final PeassFolders folders, final int average) throws JAXBException {
final File measurementFile = new File(folders.getTempMeasurementFolder(), "de.peass.MyTest");
measurementFile.mkdirs();
final XMLDataStorer storer = new XMLDataStorer(measurementFile, "de.peass.MyTest", "test");
Result result = buildResult(average);
buildFulldata(average, result);
System.out.println("Measurement file exists: " + measurementFile.exists());
storer.storeValue(result, "de.peass.MyTest", TimeDataCollector.class.getName());
System.out.println("Storing success");
}
use of de.dagere.kopeme.datastorage.XMLDataStorer in project peass by DaGeRe.
the class DummyKoPeMeDataCreator method initDummyTestfile.
public static void initDummyTestfile(final File methodFolder, final int iterations, final TestCase testcase) throws JAXBException {
XMLDataStorer storer = new XMLDataStorer(methodFolder, testcase.getClazz(), testcase.getMethod());
final Result result = new Result();
result.setValue(15);
result.setIterations(iterations);
initDummyFulldata(result, iterations);
storer.storeValue(result, testcase.getExecutable(), TimeDataCollector.class.getName());
}
Aggregations