Author: thomas.diesler(a)jboss.com
Date: 2006-12-14 13:49:44 -0500 (Thu, 14 Dec 2006)
New Revision: 1654
Modified:
trunk/src/test/java/org/jboss/test/ws/jaxws/eardeployment/EarTestCase.java
Log:
Add VFS test
Modified: trunk/src/test/java/org/jboss/test/ws/jaxws/eardeployment/EarTestCase.java
===================================================================
--- trunk/src/test/java/org/jboss/test/ws/jaxws/eardeployment/EarTestCase.java 2006-12-14
15:56:18 UTC (rev 1653)
+++ trunk/src/test/java/org/jboss/test/ws/jaxws/eardeployment/EarTestCase.java 2006-12-14
18:49:44 UTC (rev 1654)
@@ -30,6 +30,8 @@
import org.jboss.test.ws.JBossWSTest;
import org.jboss.test.ws.JBossWSTestSetup;
+import org.jboss.virtual.VFS;
+import org.jboss.virtual.VirtualFile;
import org.jboss.ws.core.utils.DOMUtils;
import org.jboss.ws.core.utils.ResourceURL;
import org.w3c.dom.Element;
@@ -59,6 +61,23 @@
assertNotNull(root);
}
+ public void testVirtualFile() throws Exception
+ {
+ File earFile = new File("libs/jaxws-eardeployment.ear");
+ assertTrue(earFile.exists());
+
+ URL earURL = earFile.toURL();
+ VFS fsEar = VFS.getVFS(earURL);
+ VirtualFile vfWar = fsEar.findChild("jaxws-eardeployment.war");
+ assertNotNull(earURL + "!/jaxws-eardeployment.war", vfWar);
+
+ VirtualFile vfWsdl = vfWar.findChild("WEB-INF/wsdl/TestEndpoint.wsdl");
+ assertNotNull(earURL +
"!/jaxws-eardeployment.war!/WEB-INF/wsdl/TestEndpoint.wsdl", vfWsdl);
+
+ Element root = DOMUtils.parse(vfWsdl.openStream());
+ assertNotNull(root);
+ }
+
public void testEJB3Endpoint() throws Exception
{
URL wsdlURL = new URL ("http://" + getServerHost() +
":8080/earejb3/EJB3Bean?wsdl");
Show replies by date