Examples of WSTools


Examples of org.jboss.ws.tools.WSTools

   public void testExtensionType() throws Exception
   {
      String resourceDir = "resources/tools/jbws1725";
      String toolsDir = "tools/jbws1725";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

      compareSource(resourceDir + "/PasswordType.java", toolsDir + "/org/jboss/test/ws/jbws1725/PasswordType.java");
   }
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws2019/" + scenario;
      String toolsDir = "tools/jbws2019/" + scenario;
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);
      File resourceDirFile = new File(resourceDir);
      String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
            return name.endsWith(".java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   {
      String out_dir = "tools/jbws-206/jbossws/" + getBase();
      String configloc = "resources/tools/jbws-206/jbosswsConfig/" + getBase() + "/" + getBase() + "wsdl2java.xml";

      String[] args = new String[] { "-dest", out_dir, "-config", configloc };
      WSTools tools = new WSTools();
      tools.generate(args);
      checkServiceEndpointInterface();
      checkServiceInterface();
      checkGeneratedUserTypes();
   }
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   {
      String testToolsDir = toolsDir + "/" + type;
      String testResourceDir = resourceDir + "/" + 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

Examples of org.jboss.ws.tools.WSTools

   private static final String toolsDir = "tools/jbws1441";

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

      compareSource("AbstractType.java");
      compareSource("Person.java");
      compareSource("PhoneBook_PortType.java");
      compareSource("TelephoneNumber.java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws1691/" + scenario;
      String toolsDir = "tools/jbws1691/" + scenario;
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);
      File resourceDirFile = new File(resourceDir);
      String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
            return name.endsWith(".java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws1873/" + scenario;
      String toolsDir = "tools/jbws1873/" + scenario;
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);
      File resourceDirFile = new File(resourceDir);
      String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
            return name.endsWith(".java");
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

      String toolsDir = "tools/jbws1080";
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };

      try
      {
         new WSTools().generate(args);
         fail("Expected exception not thrown.");
      }
      catch (IOException e)
      {
         assertTrue("Expected error", e.getMessage().indexOf("'{\"http://www.jboss.org/jbossws-tools\":namespaces}' is expected.") > -1);
View Full Code Here

Examples of org.jboss.ws.tools.WSTools

   protected void generateScenario(final String scenario) throws Exception
   {
      String resourceDir = "resources/tools/jbws1259/scenario_" + scenario;
      String toolsDir = "tools/jbws1259/scenario_" + scenario;
      String[] args = new String[] { "-dest", toolsDir, "-config", resourceDir + "/wstools-config.xml" };
      new WSTools().generate(args);

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

Examples of org.jboss.ws.tools.WSTools

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

      File resourceDirFile = new File(resourceDir);
      String[] expectedFiles = resourceDirFile.list(new FilenameFilter() {
         public boolean accept(File dir, String name)
         {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.