Print

Print


Commit in lcsim/test/org/lcsim/aida on MAIN
AidaGraphicsOutputTest.java+5-91.1 -> 1.2
use test output file class

lcsim/test/org/lcsim/aida
AidaGraphicsOutputTest.java 1.1 -> 1.2
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());
         }
     }    
 }
CVSspam 0.2.12


Use REPLY-ALL to reply to list

To unsubscribe from the LCD-CVS list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=LCD-CVS&A=1