Package org.jboss.test.ws.tools.fixture

Examples of org.jboss.test.ws.tools.fixture.JBossSourceComparator


      mappingValidator.validate(resourceDir + "/myporttype-mapping.xml", toolsDir + "/myporttype-mapping.xml");

      File expSEI = new File(resourceDir + "/My.java");
      File wasSEI = new File(toolsDir + "/org/jboss/test/ws/jbws1253/My.java");

      JBossSourceComparator sc = new JBossSourceComparator(expSEI, wasSEI);
      sc.validate();
      sc.validateImports();

      File expService = new File(resourceDir + "/TestSEIService.java");
      File wasService = new File(toolsDir + "/org/jboss/test/ws/jbws1253/TestSEIService.java");

      sc = new JBossSourceComparator(expService, wasService);
      sc.validate();
      sc.validateImports();
   }
View Full Code Here


      String fname = "TypicalPerson.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/simpletypes/" + fname);
     
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
     
      // [JBWS-940] Add wsdl-java support for jdk 1.4 typesafe enums
      //assertTrue("Source Files Match:", sc.validate());
      //sc.validateImports();

      //Compare the generated Java type against the one generated by wscompile
      fname = "USMidwest.java";
      base = "resources/tools/xsd-java-checker";
      file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      file1 = new File(base + "/wscompile/simpletypes/" + fname);
      sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "NillableType.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/nillabletypes/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "USAddress.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/complextypes/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Mismatch", sc.validate());
      sc.validateImports();

      //Compare the generated Java type against the one generated by wscompile
      fname = "Country.java";
      base = "resources/tools/xsd-java-checker";
      file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      file1 = new File(base + "/wscompile/complextypes/" + fname);
      sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Mismatch", sc.validate());
      sc.validateImports();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "Address.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/complextypes/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "GlobalPrice.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/complextypes/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "Price.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/complextypes/emptycontent/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "President.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/occurrence/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/complextypes/occurrence/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

   private static void compareSource(final String expectedName, final String generatedName) throws Exception
   {
      File expected = new File(expectedName);
      File generated = new File(generatedName);

      JBossSourceComparator sc = new JBossSourceComparator(expected, generated);
      sc.validate();
      sc.validateImports();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "AwardEmployee.java";
      String base = "resources/tools/xsd-java-checker";
      File file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = new File(base + "/wscompile/complextypes/inheritance/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();

      //Compare the generated Java type against the one generated by wscompile
      fname = "Employee.java";
      file2 = new File(genPath + "/org/jboss/ws/types/" + fname);
      file1 = new File(base + "/wscompile/complextypes/inheritance/" + fname);
      sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.ws.tools.fixture.JBossSourceComparator

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.