Package org.antlr.mojo.antlr4test

Examples of org.antlr.mojo.antlr4test.GrammarTestMojo


   public void testExecution() throws Exception {
      try {
         final File pom = getTestFile(POMFILE);
         assertNotNull(pom);
         assertTrue(pom.exists());
         final GrammarTestMojo grammarTestMojo = (GrammarTestMojo) lookupMojo(GOAL, pom);
         assertNotNull(grammarTestMojo);
         // grammarTestMojo.execute();
      } catch (final Exception e) {
         e.printStackTrace();
      }
View Full Code Here


   public void testInstatiation() throws Exception {
      try {
         final File pom = getTestFile(POMFILE);
         assertNotNull(pom);
         assertTrue(pom.exists());
         final GrammarTestMojo grammarTestMojo = (GrammarTestMojo) lookupMojo(GOAL, pom);
         assertNotNull(grammarTestMojo);
         assertTrue(grammarTestMojo.isVerbose() == true);
         assertTrue(grammarTestMojo.getExampleFiles().compareTo("src/test/resources/examples/") == 0);
         assertTrue(grammarTestMojo.getEntryPoint().compareTo("equation") == 0);
      } catch (final Exception e) {
         e.printStackTrace();
      }
   }
View Full Code Here

TOP

Related Classes of org.antlr.mojo.antlr4test.GrammarTestMojo

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.