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

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


   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 = "NillableType.java";
      File file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = getResourceFile("tools/xsd-java-checker/wscompile/nillabletypes/" + fname);
      JBossSourceComparator sc = new JBossSourceComparator(file1, file2);
      assertTrue("Source Files Match:", sc.validate());
      sc.validateImports();
   }
View Full Code Here

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

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

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

      File expService = new File(resourceDir.getAbsolutePath() + "/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

   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();
   }
View Full Code Here

      //Compare the generated Java type against the one generated by wscompile
      String fname = "USAddress.java";
      File file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = getResourceFile("tools/xsd-java-checker/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";
      file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
      file1 = getResourceFile("tools/xsd-java-checker/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";
      File file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = getResourceFile("tools/xsd-java-checker/wscompile/complextypes/" + 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

   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

   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

   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

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.