lcsim/test/org/lcsim/aida
diff -u -r1.1 -r1.2
--- AidaGraphicsOutputTest.java 15 Apr 2013 22:45:40 -0000 1.1
+++ AidaGraphicsOutputTest.java 17 Apr 2013 00:14:41 -0000 1.2
@@ -10,11 +10,12 @@
import java.util.Random;
import junit.framework.TestCase;
-import de.schlichtherle.io.File;
+
+import org.lcsim.util.test.TestUtil.TestOutputFile;
/**
* @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: AidaGraphicsOutputTest.java,v 1.1 2013/04/15 22:45:40 jeremy Exp $
+ * @version $Id: AidaGraphicsOutputTest.java,v 1.2 2013/04/17 00:14:41 jeremy Exp $
*/
public class AidaGraphicsOutputTest extends TestCase {
@@ -37,14 +38,9 @@
IPlotter plotter = analysisFactory.createPlotterFactory().create();
plotter.createRegion();
plotter.region(0).plot(histogram);
-
- String fileName = "target" + File.separator + "test-output" + File.separator
- + this.getClass().getSimpleName();
-
+
for (String format : formats) {
- String fullPath = fileName + "." + format;
- System.out.println("writing histogram to " + fullPath);
- plotter.writeToFile(fileName + "." + format);
+ plotter.writeToFile(new TestOutputFile(this.getClass().getSimpleName() + "." + format).getCanonicalPath());
}
}
}