JBossWS SVN: r1206 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 04:07:21 -0400 (Wed, 11 Oct 2006)
New Revision: 1206
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java
Log:
[JBWS-1293] Fix XOPTypeDefTestCase
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java 2006-10-11 08:04:20 UTC (rev 1205)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPTypeDefTestCase.java 2006-10-11 08:07:21 UTC (rev 1206)
@@ -92,28 +92,31 @@
public void testMSFTElementScan() throws Exception
{
- /*
- SchemaUtils utils = SchemaUtils.getInstance();
- File f = new File(prefix +"resources/jaxrpc/xop/schema.xsd");
- assertTrue("Unable to load schema file " + f.getAbsolutePath(), f.exists());
+ if (true)
+ {
+ System.out.println("FIXME: JBWS-1293");
+ return;
+ }
- XSModel xsModel = utils.parseSchema(f.toURL());
- assertNotNull(xsModel);
- WSSchemaUtils wsUtil = WSSchemaUtils.getInstance(new NamespaceRegistry(), "http://jboss.org/test/ws/xop/doclit");
- JBossXSModel schemaModel= wsUtil.getJBossXSModel(xsModel);
+ SchemaUtils utils = SchemaUtils.getInstance();
+ File f = new File("resources/jaxrpc/xop/schema.xsd");
+ assertTrue("Unable to load schema file " + f.getAbsolutePath(), f.exists());
- XSTypeDefinition xsType = schemaModel.getTypeDefinition(">MSFTBinary", "http://jboss.org/test/ws/xop/doclit");
+ XSModel xsModel = utils.parseSchema(f.toURL());
+ assertNotNull(xsModel);
+ WSSchemaUtils wsUtil = WSSchemaUtils.getInstance(new NamespaceRegistry(), "http://jboss.org/test/ws/xop/doclit");
+ JBossXSModel schemaModel = wsUtil.getJBossXSModel(xsModel);
- assertNotNull("Root type def not found", xsType);
- XOPScanner scanner = new XOPScanner();
+ XSTypeDefinition xsType = schemaModel.getTypeDefinition(">MSFTBinary", "http://jboss.org/test/ws/xop/doclit");
- if (xsType instanceof XSComplexTypeDefinition)
- {
- XSComplexTypeDefinition xsComplexType = (XSComplexTypeDefinition)xsType;
- XSTypeDefinition resultType = scanner.findXOPTypeDef(xsComplexType);
- assertNotNull("Unable to find xop typedef in schema", resultType);
- }
- */
- System.out.println("FIXME: testMSFTElementScan");
+ assertNotNull("Root type def not found", xsType);
+ XOPScanner scanner = new XOPScanner();
+
+ if (xsType instanceof XSComplexTypeDefinition)
+ {
+ XSComplexTypeDefinition xsComplexType = (XSComplexTypeDefinition)xsType;
+ XSTypeDefinition resultType = scanner.findXOPTypeDef(xsComplexType);
+ assertNotNull("Unable to find xop typedef in schema", resultType);
+ }
}
}
17 years, 6 months
JBossWS SVN: r1205 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 04:04:20 -0400 (Wed, 11 Oct 2006)
New Revision: 1205
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java
Log:
[JBXB-33] Util Class: Util method to pass a StringList/SchemaBindingResolver/Error Handler
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java 2006-10-11 08:01:52 UTC (rev 1204)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/xmlschema/XercesSchemaParserTestCase.java 2006-10-11 08:04:20 UTC (rev 1205)
@@ -183,8 +183,6 @@
((XMLSchemaLoader)xsloader).setEntityResolver(new JBossXSEntityResolver(new JBossWSEntityResolver(), map));
//Construct a StringList
StringList slist = new StringListImpl(arr, 2);
- System.out.println("FIXME: JBXB-33");
- //XSModel xsmodel = Util.loadSchema(slist,getSchemaBindingResolver(map));
XSModel xsmodel = xsloader.loadURIList(slist);
assertNotNull("XSModel is null?", xsmodel);
17 years, 6 months
JBossWS SVN: r1204 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 04:01:52 -0400 (Wed, 11 Oct 2006)
New Revision: 1204
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPElementRPCTestCase.java
Log:
[JBWS-1292] Fix XOPElementRPCTestCase
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPElementRPCTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPElementRPCTestCase.java 2006-10-11 06:57:05 UTC (rev 1203)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/jaxrpc/xop/XOPElementRPCTestCase.java 2006-10-11 08:01:52 UTC (rev 1204)
@@ -21,9 +21,17 @@
*/
package org.jboss.test.ws.jaxrpc.xop;
+import java.io.ByteArrayInputStream;
+import java.io.ByteArrayOutputStream;
+
+import javax.mail.internet.ContentType;
import javax.xml.namespace.QName;
import javax.xml.soap.MessageFactory;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPMessage;
import org.jboss.test.ws.JBossWSTest;
@@ -37,6 +45,9 @@
import org.jboss.ws.soap.NameImpl;
import org.jboss.ws.soap.SOAPBodyElementRpc;
import org.jboss.ws.soap.SOAPContentElement;
+import org.jboss.ws.soap.attachment.MimeConstants;
+import org.jboss.ws.utils.DOMUtils;
+import org.jboss.ws.utils.DOMWriter;
/**
* Test the SOAPElement
@@ -85,8 +96,14 @@
public void testSOAPMessageRoundTrip() throws Exception
{
- /*String xopContent = "This is XOP content";
- xopElement.setXMimeContentType("text/plain");
+ if (true)
+ {
+ System.out.println("FIXME: JBWS-1292");
+ return;
+ }
+
+ String xopContent = "This is XOP content";
+ //xopElement.setXMimeContentType("text/plain");
xopElement.setObjectValue(xopContent);
// Write SOAP message as multipart/related
@@ -108,14 +125,11 @@
SOAPBody soapBody = soapMessage.getSOAPBody();
SOAPElement rpcElement = (SOAPElement)DOMUtils.getFirstChildElement(soapBody);
- assertEquals(new NameImpl(opMetaData.getXmlName()), rpcElement.getElementName());
+ assertEquals(new NameImpl(opMetaData.getQName()), rpcElement.getElementName());
SOAPContentElement xopElement = (SOAPContentElement)DOMUtils.getFirstChildElement(rpcElement);
assertEquals(new NameImpl(paramMetaData.getXmlName()), xopElement.getElementName());
xopElement.setParamMetaData(paramMetaData);
Object retObj = xopElement.getObjectValue();
assertEquals(xopContent, retObj);
- */
-
- System.out.println("FIXME: JBXB-62");
}
}
\ No newline at end of file
17 years, 6 months
JBossWS SVN: r1202 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 02:51:50 -0400 (Wed, 11 Oct 2006)
New Revision: 1202
Removed:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL20TestCase.java
Log:
[JBWS-509] WSDL 2.0 support in tools is broken, fix or remove it
Deleted: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL20TestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL20TestCase.java 2006-10-11 06:49:17 UTC (rev 1201)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL20TestCase.java 2006-10-11 06:51:50 UTC (rev 1202)
@@ -1,122 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.tools;
-
-import org.jboss.test.ws.JBossWSTest;
-
-/**
- * Test jbossws Java -> WSDL20
- *
- * @author Thomas.Diesler(a)jboss.org
- * @since 14-Oct-2004
- */
-public class JavaToWSDL20TestCase extends JBossWSTest
-{
- public void testShowJBWS()
- {
- System.out.println("FIXME: JBWS-509");
- }
-// /** Test a SEI that contains JAXRPC primitive types */
-// public void testPrimitiveTypes() throws Exception
-// {
-// Class seiClass = PrimitiveTypes.class;
-// doWSDLTest(seiClass);
-// }
-//
-// /** Test a SEI that contains JAXRPC java standard types */
-// public void testStandardJavaTypes() throws Exception
-// {
-// Class seiClass = StandardJavaTypes.class;
-// doWSDLTest(seiClass);
-// }
-//
-// /** Test a SEI that contains custom exceptions */
-// public void testCustomTypes() throws Exception
-// {
-// Class seiClass = CustomInterface.class;
-// doWSDLTest(seiClass);
-// }
-//
-// /** Test a SEI that contains custom exceptions */
-// public void testExceptionTypes() throws Exception
-// {
-// Class seiClass = ServiceException.class;
-// doWSDLTest(seiClass);
-// }
-//
-// /** Test a SEI that contains complex types */
-// public void testComplexTypes() throws Exception
-// {
-// Class seiClass = ComplexTypes.class;
-// doWSDLTest(seiClass);
-// }
-//
-// /** Test a SEI that contains array types */
-// public void testArrayTypes() throws Exception
-// {
-// Class seiClass = ArrayInterface.class;
-// doWSDLTest(seiClass);
-// }
-//
-// private void doWSDLTest(Class seiClass) throws Exception
-// {
-// this.setSystemProperties();
-// String wsdlDir = "tools/";
-// String sname = WSDLUtils.getInstance().getJustClassName(seiClass) + "Service";
-// String wsdlPath = wsdlDir+ "/" + sname + ".wsdl";
-// JavaToWSDL jwsdl = new JavaToWSDL(Constants.NS_WSDL20);
-// jwsdl.setServiceName(sname);
-// jwsdl.setTargetNamespace("http://org.jboss.ws/types");
-// jwsdl.addFeature(WSToolsConstants.WSTOOLS_FEATURE_RESTRICT_TO_TARGET_NS, true); //generate types to targetns
-// WSDLDefinitions wsdl = jwsdl.generate(seiClass);
-//
-// FileWriter fw = new FileWriter(new File(wsdlPath));
-// wsdl.write(fw);
-// fw.close();
-//
-// System.out.println("FIXME: JBWS-212");
-// //TODO:Have fixture files for wsdl 2.0
-// //Validate the generated WSDL
-// /*File wsdlfix = new File(fixturefile);
-// Element exp = DOMUtils.parse(wsdlfix.toURL().openStream());
-// File wsdlFile = new File(wsdlPath);
-// assertNotNull("Generated WSDL File exists?", wsdlFile);
-// Element was = DOMUtils.parse(wsdlFile.toURL().openStream());
-//
-// assertEquals(exp, was);*/
-// /*
-// File wsdlFile = new File(config.getWsdlOutFile());
-// WSDLDefinitionsFactory wsdlFactory = WSDLDefinitionsFactory.newInstance();
-// WSDLDefinitions wsdl = wsdlFactory.parse(wsdlFile.toURL());
-//
-// WSDLValidator validator = new WSDLValidator();
-// if (validator.validate(seiClass, wsdl) == false)
-// fail(validator.getErrorList().toString());
-// */
-// }
-// private void setSystemProperties()
-// {
-// //Set the XSDWriter to be used
-// System.setProperty("jbossws.xsdwriter","org.jboss.ws.wsdl.xmlschema.WSXSDWriter");
-// System.setProperty("jbossws.primitiveNillableFlag","false");
-// }
-}
17 years, 6 months
JBossWS SVN: r1201 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/config
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 02:49:17 -0400 (Wed, 11 Oct 2006)
New Revision: 1201
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/config/ToolsSchemaConfigReaderTestCase.java
Log:
[JBWS-353] Adapt Tools to use the new Schema configuration(JBWS-322)
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/config/ToolsSchemaConfigReaderTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/config/ToolsSchemaConfigReaderTestCase.java 2006-10-11 06:47:47 UTC (rev 1200)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/config/ToolsSchemaConfigReaderTestCase.java 2006-10-11 06:49:17 UTC (rev 1201)
@@ -46,7 +46,6 @@
ToolsSchemaConfigReader configReader = new ToolsSchemaConfigReader();
Configuration config = configReader.readConfig(j2wConfigFile);
assertNotNull("config is null?", config);
- System.out.println("FIXME: JBWS-353");
checkJavaToWSDL(config);
}
@@ -56,12 +55,10 @@
ToolsSchemaConfigReader configReader = new ToolsSchemaConfigReader();
Configuration config = configReader.readConfig(w2jConfigFile);
assertNotNull("config is null?", config);
- System.out.println("FIXME: JBWS-353");
checkWSDLToJava(config);
}
- // JBWS-719
- // Enable schema validation on wstools config
+ // [JBWS-719] Enable schema validation on wstools config
public void testInvalidConfig() throws IOException, ClassNotFoundException
{
String[] args = new String[] { "-dest", "tools/globalconfig", "-config", "resources/tools/config/invalidConfig.xml" };
17 years, 6 months
JBossWS SVN: r1200 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/assertions
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 02:47:47 -0400 (Wed, 11 Oct 2006)
New Revision: 1200
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/assertions/Jaxrpc20AssertionsTestCase.java
Log:
[JBWS-335] Cleanup Jaxrpc20AssertionsTestCase
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/assertions/Jaxrpc20AssertionsTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/assertions/Jaxrpc20AssertionsTestCase.java 2006-10-11 06:45:17 UTC (rev 1199)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/assertions/Jaxrpc20AssertionsTestCase.java 2006-10-11 06:47:47 UTC (rev 1200)
@@ -1,24 +1,24 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.test.ws.tools.assertions;
import org.jboss.test.ws.tools.WSToolsTest;
@@ -43,37 +43,27 @@
{
public void testIsInterface() throws Exception
{
- System.out.println("FIXME: JBWS-335");
assertWSDL11Test(SomeException.class);
- //assertWSDL20Test(SomeException.class);
}
public void testRemoteType() throws Exception
{
- System.out.println("FIXME: JBWS-335");
assertWSDL11Test(AssertRemoteType.class);
- //assertWSDL20Test(AssertRemoteType.class);
}
public void testRemoteExceptionsDeclared() throws Exception
{
- System.out.println("FIXME: JBWS-335");
assertWSDL11Test(AssertRemoteExceptions.class);
- //assertWSDL20Test(AssertRemoteExceptions.class);
}
public void testAssertMethodParamExtendRemote() throws Exception
{
- System.out.println("FIXME: JBWS-335");
assertWSDL11Test(AssertMethodParamExtendRemote.class);
- //assertWSDL20Test(AssertMethodParamExtendRemote.class);
}
public void testAssertReturnTypeExtendRemote() throws Exception
{
- System.out.println("FIXME: JBWS-335");
assertWSDL11Test(AssertReturnTypeExtendRemote.class);
- //assertWSDL20Test(AssertReturnTypeExtendRemote.class);
}
/**
@@ -90,21 +80,20 @@
jwsdl.setServiceName(WSDLUtils.getInstance().getJustClassName(seiClass) + "Service");
try
{
- WSDLDefinitions wsdl = jwsdl.generate(loadClass(seiName));
- fail("Test should have failed");
+ jwsdl.generate(loadClass(seiName));
+ fail("Test should have failed");
}
- catch (WSException is )
+ catch (WSException is)
{
//pass
- } catch( Exception e)
+ }
+ catch (Exception e)
{
e.printStackTrace();
fail("Test should not have passed");
}
}
-
-
/**
* The test is to see if the JavaToWSDL subsystem throws Jaxrpc 2.0 Assertions
* for WSDL 1.1
@@ -119,12 +108,14 @@
jwsdl.setServiceName(WSDLUtils.getInstance().getJustClassName(seiClass) + "Service");
try
{
- WSDLDefinitions wsdl = jwsdl.generate(loadClass(seiName));
- fail("Test should have failed");
- }catch(IllegalArgumentException iae)
+ WSDLDefinitions wsdl = jwsdl.generate(loadClass(seiName));
+ fail("Test should have failed");
+ }
+ catch (IllegalArgumentException iae)
{
//pass
- }catch(WSException ise)
+ }
+ catch (WSException ise)
{
//pass
}
@@ -144,12 +135,14 @@
jwsdl.setServiceName(WSDLUtils.getInstance().getJustClassName(seiClass) + "Service");
try
{
- WSDLDefinitions wsdl = jwsdl.generate(seiClass);
- fail("Test should have failed");
- }catch(IllegalArgumentException iae)
+ WSDLDefinitions wsdl = jwsdl.generate(seiClass);
+ fail("Test should have failed");
+ }
+ catch (IllegalArgumentException iae)
{
//pass
- }catch(WSException ise)
+ }
+ catch (WSException ise)
{
//pass
}
17 years, 6 months
JBossWS SVN: r1198 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 02:37:37 -0400 (Wed, 11 Oct 2006)
New Revision: 1198
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java
Log:
[JBWS-1291] Fix JaxrpcMappingValidator
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java 2006-10-11 06:28:31 UTC (rev 1197)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/clientside/ClientSideArtifactsTestCase.java 2006-10-11 06:37:37 UTC (rev 1198)
@@ -190,7 +190,7 @@
JaxrpcMappingValidator mv = new JaxrpcMappingValidator();
//assertTrue(mv.validate(fix,gen));
- System.out.println("FIXME:JBWS-160");
+ System.out.println("FIXME: JBWS-1291");
}
/**
17 years, 6 months
JBossWS SVN: r1197 - branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2006-10-11 02:28:31 -0400 (Wed, 11 Oct 2006)
New Revision: 1197
Modified:
branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java
Log:
Fix wsdl file exists assertion
Modified: branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java
===================================================================
--- branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java 2006-10-11 06:26:48 UTC (rev 1196)
+++ branches/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/WSToolsTest.java 2006-10-11 06:28:31 UTC (rev 1197)
@@ -244,7 +244,7 @@
File wsdlfix = new File(expPath);
Element exp = DOMUtils.parse(wsdlfix.toURL().openStream());
File wsdlFile = new File(genpath);
- assertNotNull("Generated WSDL File exists?", wsdlFile);
+ assertTrue("Generated WSDL File exists", wsdlFile.exists());
Element was = DOMUtils.parse(wsdlFile.toURL().openStream());
//assertEquals(exp,was);
//Now that we have figured out that the wsdl files are well formed,
17 years, 6 months