Package org.jboss.ws.tools

Examples of org.jboss.ws.tools.WSTools


      File resourceDir = createResourceFile("tools/jbws1453");
      resourceDir.mkdirs();

      String toolsDir = "target/wstools/jbws1453/output";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir.getAbsolutePath() + "/wstools-config.xml" };
      new WSTools().generate(args);


      String[] expectedFiles = resourceDir.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
View Full Code Here


      File resourceDir = createResourceFile("tools/jbws1873/" + scenario);
      resourceDir.mkdirs();

      String toolsDir = "target/wstools/jbws1873/" + scenario;
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir.getAbsolutePath() + "/wstools-config.xml" };
      new WSTools().generate(args);

      String[] expectedFiles = resourceDir.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
            return name.endsWith(".java");
View Full Code Here

   {
      File resourceDir = createResourceFile("tools/jbws1697/" + scenario);
      resourceDir.mkdirs();
      String toolsDir = "target/wstools/jbws1697/" + scenario;
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir.getAbsolutePath() + "/wstools-config.xml" };
      new WSTools().generate(args);

      String[] expectedFiles = resourceDir.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
            return name.endsWith(".java");
View Full Code Here

   public void testGenerate() throws Exception
   {
      String resourceDir = createResourceFile("tools/jbws1428").getAbsolutePath();
      String toolsDir = "target/wstools/jbws1428/output";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      semanticallyValidateWSDL(resourceDir + "/ValueObjectService.wsdl", toolsDir + "/wsdl/ValueObjectService.wsdl");

      JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
      mappingValidator.validate(resourceDir + "/jaxrpc-mapping.xml", toolsDir + "/jaxrpc-mapping.xml");
View Full Code Here

   public final void testEnumWsdl() throws Exception
   {
      String config = getResourceFile("tools/jbws818/wstools-config.xml").getAbsolutePath();
      String[] args= new String[]{"-dest", "tools/jbws818", "-config", config};
      new WSTools().generate(args);

      Element exp = DOMUtils.parse(new FileInputStream(getResourceFile("tools/jbws818/CrossPackageInheritenceService.wsdl").getAbsolutePath()));
      Element was = DOMUtils.parse(new FileInputStream("tools/jbws818/wsdl/CrossPackageInheritenceService.wsdl"));
      // With JDK6 these are not lexically equivalent
      //assertEquals(exp, was);
View Full Code Here

   {
      String testToolsDir = toolsDir + "/" + type;
      String testResourceDir = resourceDir.getAbsolutePath() + "/" + type;

      String[] args = new String[] { "-dest", testToolsDir, "-config", testResourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      compareSource(type, "PhoneBook_PortType.java");

      JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
      mappingValidator.validate(testResourceDir + "/jaxrpc-mapping.xml", testToolsDir + "/jaxrpc-mapping.xml");
View Full Code Here

   public final void testMultiplePackageNameSpace() throws Exception
   {
      String resourceDir = createResourceFile("tools/jbws2018").getAbsolutePath();
      String toolsDir = "target/wstools/jbws2018/output";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      semanticallyValidateWSDL(resourceDir + "/TestService.wsdl", toolsDir + "/wsdl/TestService.wsdl");

      JaxrpcMappingValidator mappingValidator = new JaxrpcMappingValidator();
      mappingValidator.validate(resourceDir + "/jaxrpc-mapping.xml", toolsDir + "/jaxrpc-mapping.xml");
View Full Code Here

   {
      File resourceDir = createResourceFile("tools/jbws1801/" + scenario);
      String toolsDir = "target/wstools/jbws1801/" + scenario;

      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir.getAbsolutePath() + "/wstools-config.xml" };
      new WSTools().generate(args);

      String[] expectedFiles = resourceDir.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
            return name.endsWith(".java");
View Full Code Here

   public final void testMultiplePackageNameSpace() throws Exception
   {
      String resourceDir = createResourceFile("tools/jbws1217").getAbsolutePath();
      String toolsDir = "target/wstools/jbws1217/output";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      compareSource(resourceDir + "/Test.java", toolsDir + "/org/jboss/test/ws/jbws1217/Test.java");
      compareSource(resourceDir + "/TestException.java", toolsDir + "/org/jboss/test/ws/jbws1217/exception/TestException.java");
      compareSource(resourceDir + "/BaseException.java", toolsDir + "/org/jboss/test/ws/jbws1217/base/BaseException.java");
View Full Code Here

   {
      File resourceDir = createResourceFile("tools/jbws1691/" + scenario);
      resourceDir.mkdirs();
      String toolsDir = "target/wstools/jbws1691/" + scenario;
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir.getAbsolutePath() + "/wstools-config.xml" };
      new WSTools().generate(args);

      String[] expectedFiles = resourceDir.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
            return name.endsWith(".java");
View Full Code Here

TOP

Related Classes of org.jboss.ws.tools.WSTools

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.