Skip to content

Commit

Permalink
Removed the abolute file pathes
Browse files Browse the repository at this point in the history
  • Loading branch information
taojing2002 committed Jan 22, 2019
1 parent 3f9f1e0 commit 3e6341b
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/edu/ucsb/nceas/metacattest/DBTransformTest.java
Expand Up @@ -58,7 +58,6 @@ public class DBTransformTest extends TestCase {

// TODO: this needs to be generalized to make this test useful

static String BASEDIR = "/Users/rnahf/software/git_checkouts";


public DBTransformTest(String name) {
Expand Down Expand Up @@ -116,7 +115,7 @@ protected static synchronized Transformer getTransformer(String xslSystemId, boo
*/
public void testGetUniqueTransformer() throws ClassNotFoundException, PropertyNotFoundException, IOException, SQLException, TransformerException
{
String skin = BASEDIR + "/metacat/lib/style/skins/default/default.xml";
String skin = "lib/style/skins/default/default.xml";

Transformer t1 = DBTransformTest.getTransformer(skin, false);
Transformer t2 = DBTransformTest.getTransformer(skin, false);
Expand All @@ -129,7 +128,7 @@ public void testGetUniqueTransformer() throws ClassNotFoundException, PropertyNo
*/
public void testGetTransformerPerformance() throws Exception {

String skin = BASEDIR + "/metacat/lib/style/skins/default/default.xml";
String skin = "lib/style/skins/default/default.xml";

long t0 = System.nanoTime();
Transformer t = transformerFactory.newTransformer(new StreamSource(skin));
Expand Down Expand Up @@ -164,8 +163,8 @@ public void testGetTransformerPerformance() throws Exception {
*/
public void testTransformation() throws Exception {

String skin = BASEDIR + "/metacat/lib/style/skins/default/default.xml";
String doc = BASEDIR + "/metacat/test/eml-sample.xml";
String skin = "lib/style/skins/default/default.xml";
String doc = "test/eml-sample.xml";

long start = System.nanoTime();
Transformer t2 = DBTransformTest.getTransformer(skin, false);
Expand Down

0 comments on commit 3e6341b

Please sign in to comment.