Package org.sourceforge.jsonedit.core.validation

Examples of org.sourceforge.jsonedit.core.validation.JsonTextValidator$Location


  @Test
  public void testFile8() throws Exception {

    File file = new File(System.getProperty("user.dir") + "/resources/testfiles/test8.json");

    JsonTextValidator jtop = new JsonTextValidator(file) {

      @Override
      public void reportProblem(String msg, Location loc, int violation, boolean isError) {

        Assert.assertEquals(loc.charStart, 18);
      }
    };

    jtop.parse();

  }
View Full Code Here


  @Test
  public void testFile9() throws Exception {
   
    File file = new File(System.getProperty("user.dir") + "/resources/testfiles/test9.json");
   
    JsonTextValidator jtop = new JsonTextValidator(file) {
     
      @Override
      public void reportProblem(String msg, Location loc, int violation, boolean isError) {
       
        Assert.fail();
      }
    };
   
    jtop.parse();

  }
View Full Code Here

TOP

Related Classes of org.sourceforge.jsonedit.core.validation.JsonTextValidator$Location

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.