Author: richard.opalka(a)jboss.com
Date: 2007-10-09 07:09:28 -0400 (Tue, 09 Oct 2007)
New Revision: 4703
Modified:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderTestCase.java
Log:
[JBWS-1799] fixing tests
Modified:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java 2007-10-09
11:07:28 UTC (rev 4702)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/ScriptTestCase.java 2007-10-09
11:09:28 UTC (rev 4703)
@@ -94,7 +94,7 @@
File outputDir = new File("wsprovide/java");
File javaSource = new File(
outputDir.getAbsolutePath()+
- "/org/jboss/test/ws/jaxws/smoke/tools/jaxws/AddResponse.java"
+
"/org/jboss/test/ws/jaxws/smoke/tools/jaxws/generated__432967231/AddResponse.java"
);
assertTrue("Response wrapper not generated", javaSource.exists());
Modified:
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderTestCase.java
===================================================================
---
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderTestCase.java 2007-10-09
11:07:28 UTC (rev 4702)
+++
framework/trunk/src/test/java/org/jboss/test/ws/jaxws/smoke/tools/WSProviderTestCase.java 2007-10-09
11:09:28 UTC (rev 4703)
@@ -98,7 +98,7 @@
{
File javaSource = new File(
directory.getAbsolutePath()+
- "/org/jboss/test/ws/jaxws/smoke/tools/jaxws/AddResponse.java"
+
"/org/jboss/test/ws/jaxws/smoke/tools/jaxws/generated__432967231/AddResponse.java"
);
assertTrue("Source not generated", javaSource.exists());
@@ -112,7 +112,7 @@
{
provide();
ClassLoader loader = getArtefactClassLoader();
- Class responseWrapper =
loader.loadClass("org.jboss.test.ws.jaxws.smoke.tools.jaxws.AddResponse");
+ Class responseWrapper =
loader.loadClass("org.jboss.test.ws.jaxws.smoke.tools.jaxws.generated__432967231.AddResponse");
XmlRootElement rootElement = (XmlRootElement)
responseWrapper.getAnnotation(XmlRootElement.class);
assertNotNull("@XmlRootElement missing form response wrapper",
rootElement);
assertEquals("Wrong namespace", rootElement.namespace(),
"http://foo.bar.com/calculator");
@@ -199,7 +199,7 @@
System.out.println("-- End captured output --");
assertTrue("Provider messages not correctly redirected",
-
messageOut.indexOf("org/jboss/test/ws/jaxws/smoke/tools/jaxws/Add.class") != -1
);
+
messageOut.indexOf("org/jboss/test/ws/jaxws/smoke/tools/jaxws/generated__432967231/Add.class")
!= -1 );
}
private void provide() throws Exception
Show replies by date