Author: alessio.soldano(a)jboss.com
Date: 2008-05-14 07:21:36 -0400 (Wed, 14 May 2008)
New Revision: 7026
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java
Log:
Minor changes
Modified:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java
===================================================================
---
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java 2008-05-14
11:11:11 UTC (rev 7025)
+++
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSConsumerTestCase.java 2008-05-14
11:21:36 UTC (rev 7026)
@@ -57,7 +57,7 @@
// default is off
boolean toogleMessageOut = false;
- private String targetDir;
+ private File workDirectory;
/**
* Recreates a tools delegate for every test
@@ -74,7 +74,7 @@
// shared output directory, we go out of the test-resources directory
outputDirectory = createResourceFile("../wsconsume/java");
- targetDir = createResourceFile("..").getAbsolutePath();
+ workDirectory = createResourceFile("../work");
}
/**
@@ -131,11 +131,11 @@
{
consumer.setTargetPackage("org.jboss.test.ws.tools.testOutputDirectory");
consumer.setGenerateSource(true);
- consumer.setSourceDirectory(new File(targetDir +
"/work/testOutputDirectory/java/"));
+ consumer.setSourceDirectory(new File(workDirectory,
"testOutputDirectory/java/"));
consumeWSDL();
- File sei = new File(targetDir +
"/work/testOutputDirectory/java/org/jboss/test/ws/tools/testOutputDirectory/EndpointInterface.java");
+ File sei = new File(workDirectory,
"testOutputDirectory/java/org/jboss/test/ws/tools/testOutputDirectory/EndpointInterface.java");
assertTrue("Output directory switch ignored", sei.exists());
}
@@ -149,11 +149,11 @@
{
consumer.setTargetPackage("org.jboss.test.ws.tools.testSourceDirectory");
consumer.setGenerateSource(true);
- consumer.setSourceDirectory(new File(targetDir +
"/work/wsconsumeSource/java/"));
+ consumer.setSourceDirectory(new File(workDirectory,
"wsconsumeSource/java/"));
consumeWSDL();
- File sei = new File(targetDir +
"/work/wsconsumeSource/java/org/jboss/test/ws/tools/testSourceDirectory/EndpointInterface.java");
+ File sei = new File(workDirectory,
"wsconsumeSource/java/org/jboss/test/ws/tools/testSourceDirectory/EndpointInterface.java");
assertTrue("Source directory switch ignored", sei.exists());
}
Show replies by date