Package org.jboss.forge.roaster.model

Examples of org.jboss.forge.roaster.model.SyntaxError


      JavaSource<?> source = Roaster.parse(JavaSource.class, sourceCode);
      assertTrue(source.hasSyntaxErrors());
      assertTrue(source.getSyntaxErrors().size() >= 2);

      SyntaxError syntaxError = source.getSyntaxErrors().get(0);

      assertEquals(3, syntaxError.getLine());
      assertEquals(4, syntaxError.getColumn());
      assertEquals(true, syntaxError.isError());

      syntaxError = source.getSyntaxErrors().get(1);

      assertEquals(8, syntaxError.getLine());
      assertEquals(12, syntaxError.getColumn());
      assertEquals(true, syntaxError.isError());

   }
View Full Code Here


        JavaSource<?> source = Roaster.parse(JavaSource.class, sourceCode);
        assertTrue(source.hasSyntaxErrors());
        assertEquals( 2, source.getSyntaxErrors().size() );

        SyntaxError syntaxError = source.getSyntaxErrors().get( 0 );

        assertEquals( 3, syntaxError.getLine() );
        assertEquals( 4, syntaxError.getColumn() );
        assertEquals( true, syntaxError.isError() );

        syntaxError = source.getSyntaxErrors().get( 1 );

        assertEquals( 8, syntaxError.getLine() );
        assertEquals( 12, syntaxError.getColumn() );
        assertEquals( true, syntaxError.isError() );

    }
View Full Code Here

TOP

Related Classes of org.jboss.forge.roaster.model.SyntaxError

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.