Specify test_dir in the unit test.

Now that it's consistent, we can avoid extra build shenanigans.
This commit is contained in:
Michael Bayne
2014-11-17 14:06:48 -08:00
parent 3cb7407643
commit c066cbf044
3 changed files with 6 additions and 5 deletions
-1
View File
@@ -65,7 +65,6 @@
<path refid="built.classpath"/>
<fileset dir="lib/test" includes="*.jar"/>
</classpath>
<sysproperty key="test_dir" value="${tclasses.dir}"/>
<formatter type="brief" usefile="false"/>
<formatter type="xml"/>
<batchtest todir="${deploy.dir}/test-reports">
-3
View File
@@ -149,9 +149,6 @@
<excludes>
<exclude>com/samskivert/swing/TestComboButtonBox*</exclude>
</excludes>
<systemProperties>
<property><name>test_dir</name><value>target/test-classes</value></property>
</systemProperties>
<additionalClasspathElements>
<additionalClasspathElement>lib/test/test.jar</additionalClasspathElement>
<additionalClasspathElement>lib/test/test-al.jar</additionalClasspathElement>
@@ -21,6 +21,11 @@ import com.samskivert.test.TestUtil;
public class SiteResourceLoaderTest
{
@BeforeClass
public static void setTestDir () {
System.setProperty("test_dir", "target/test-classes");
}
@Test
public void runTest ()
{
@@ -39,7 +44,7 @@ public class SiteResourceLoaderTest
} catch (IOException ioe) {
ioe.printStackTrace();
fail("Caught exception while testing resource loader.");
fail("Caught exception while testing resource loader: " + ioe);
}
}