Author: heiko.braun(a)jboss.com
Date: 2008-05-07 16:08:21 -0400 (Wed, 07 May 2008)
New Revision: 6951
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/jbws1259/JBWS1259TestCase.java
Log:
Fix jbws1259 tests
Modified:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/jbws1259/JBWS1259TestCase.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/jbws1259/JBWS1259TestCase.java 2008-05-07
20:04:18 UTC (rev 6950)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/tools/jbws1259/JBWS1259TestCase.java 2008-05-07
20:08:21 UTC (rev 6951)
@@ -129,13 +129,14 @@
protected void generateScenario(final String scenario) throws Exception
{
- String resourceDir = createResourceFile("tools/jbws1259/scenario_" +
scenario).getAbsolutePath();
- String toolsDir = resourceDir; //"tools/jbws1259/scenario_" + scenario;
- String[] args = new String[] { "-dest", toolsDir, "-config",
resourceDir + "/wstools-config.xml" };
+ File resourceDir= createResourceFile("tools/jbws1259/scenario_" +
scenario);
+ resourceDir.mkdirs();
+
+ String toolsDir = resourceDir.getAbsolutePath();
+ String[] args = new String[] { "-dest", toolsDir, "-config",
resourceDir.getAbsolutePath() + "/wstools-config.xml" };
new WSTools().generate(args);
- File resourceDirFile = createResourceFile(resourceDir);
- String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
+ String[] expectedFiles = resourceDir.list(new FilenameFilter() {
public boolean accept(File dir, String name)
{
return name.endsWith(".java");
@@ -156,7 +157,7 @@
}
}
- File packageDir = createResourceFile(toolsDir +
"/org/jboss/test/ws/jbws1259");
+ File packageDir = new File(toolsDir + "/org/jboss/test/ws/jbws1259");
String[] generatedFiles = packageDir.list();
for (int i = 0; i < generatedFiles.length; i++)
{
Show replies by date