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

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


      String fname="PrimitiveTypes.java";
      File file1 = getResourceFile("tools/sourcecomp/expected/" + fname);
      File file2 = getResourceFile("tools/sourcecomp/missingimport/" + fname);
      try
      {
         sc= new JBossSourceComparator(file1,file2);
      }
      catch (Exception e)
      {
         fail(e.getLocalizedMessage());
      }
View Full Code Here


      String fname="PrimitiveTypes.java";
      File file1 = getResourceFile("tools/sourcecomp/expected/" + fname);
      File file2 = getResourceFile("tools/sourcecomp/diffmethodorder/" + fname);
      try
      {
         sc= new JBossSourceComparator(file1,file2);
         assertTrue("Source Files Match:",sc.validate());

      }
      catch (Exception e)
      {
View Full Code Here

   private void compareSource(final String fileName) throws Exception
   {
      File expected = new File(resourceDir + "/" + fileName);
      File generated = new File(toolsDir + "/org/jboss/test/ws/jbws1455/" + fileName);

      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 void compareSource(final String fileName) throws Exception
   {
      File expected = new File(resourceDir + "/" + fileName);
      File generated = new File(toolsDir + "/org/jboss/test/ws/jbws1441/" + fileName);

      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 void compareSource(final String fileName) throws Exception
   {
      File expected = getResourceFile(resourceDir + "/" + fileName);
      File generated = new File(toolsDir + "/org/jboss/test/ws/jbpapp921/" + fileName);

      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 = "Items.java";
      File file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = getResourceFile("tools/xsd-java-checker/wscompile/anontypes/" + 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 = "ItemsItem.java";
      file2 = createResourceFile(genPath  + "/org/jboss/ws/types/" + fname);
      file1 = getResourceFile("tools/xsd-java-checker/wscompile/anontypes/" + 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 = "TypicalPerson.java";
      File file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
      File file1 = getResourceFile("tools/xsd-java-checker/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";
      file2 = createResourceFile(genPath + "/org/jboss/ws/types/" + fname);
      file1 = getResourceFile("tools/xsd-java-checker/wscompile/simpletypes/" + 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.