Specify test_dir in the unit test.
Now that it's consistent, we can avoid extra build shenanigans.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user