Package co.ohba.autumn

Examples of co.ohba.autumn.AutumnConfig$Jdbc


public class AutumnConfigTest {

  @Test
  public void shouldAllowNoQuotes() {
    String configJson = "{pojoMapping:false}";
    AutumnConfig result = AutumnConfig.fromJsonString(null,configJson);
    assertNotNull(result);
    assertFalse(result.getPojoMapping());
  }
View Full Code Here


  }

  @Test
  public void shouldAllowSingleQuotes() {
    String configJson = "{'pojoMapping':false}";
    AutumnConfig result = AutumnConfig.fromJsonString(null, configJson);
    assertNotNull(result);
    assertFalse(result.getPojoMapping());
  }
View Full Code Here

  }

  @Test
  public void shouldAllowComments() {
    String configJson = "{'pojoMapping' /* comment*/ :false} // other comment";
    AutumnConfig result = AutumnConfig.fromJsonString(null, configJson);
    assertNotNull(result);
    assertFalse(result.getPojoMapping());
  }
View Full Code Here

TOP

Related Classes of co.ohba.autumn.AutumnConfig$Jdbc

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.