1 58 package org.krysalis.barcode; 59 60 import java.io.File ; 61 62 import junit.framework.TestCase; 63 64 70 public abstract class AbstractBarcodeTestCase extends TestCase { 71 72 75 public AbstractBarcodeTestCase(String name) { 76 super(name); 77 } 78 79 83 protected File getBaseDir() { 84 String basedir = System.getProperty("basedir"); 85 if (basedir != null) { 86 return new File (basedir); 87 } else { 88 return new File ("."); 89 } 90 } 91 92 } 93 | Popular Tags |