Package buri.ddmsence.ddms.format

Examples of buri.ddmsence.ddms.format.Extent.toJSON()


  @Test
  public void testOutputJSONPrettyPrint() throws InvalidDDMSException {
    Extent extent = new Extent("a", "z");
    PropertyReader.setProperty("output.json.prettyPrint", "false");
    assertEquals("{\"qualifier\":\"a\",\"value\":\"z\"}", extent.toJSON());
    PropertyReader.setProperty("output.json.prettyPrint", "true");
    assertEquals("{\n  \"qualifier\": \"a\",\n  \"value\": \"z\"\n}", extent.toJSON());
  }
 
  @Test
View Full Code Here


  public void testOutputJSONPrettyPrint() throws InvalidDDMSException {
    Extent extent = new Extent("a", "z");
    PropertyReader.setProperty("output.json.prettyPrint", "false");
    assertEquals("{\"qualifier\":\"a\",\"value\":\"z\"}", extent.toJSON());
    PropertyReader.setProperty("output.json.prettyPrint", "true");
    assertEquals("{\n  \"qualifier\": \"a\",\n  \"value\": \"z\"\n}", extent.toJSON());
  }
 
  @Test
  public void testOutputJSONInline() throws InvalidDDMSException {
    DDMSVersion.setCurrentVersion("4.1");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.