101112131415161718
public class AutumnConfigTest { @Test public void shouldAllowNoQuotes() { String configJson = "{pojoMapping:false}"; AutumnConfig result = AutumnConfig.fromJsonString(null,configJson); assertNotNull(result); assertFalse(result.getPojoMapping()); }
181920212223242526
} @Test public void shouldAllowSingleQuotes() { String configJson = "{'pojoMapping':false}"; AutumnConfig result = AutumnConfig.fromJsonString(null, configJson); assertNotNull(result); assertFalse(result.getPojoMapping()); }
262728293031323334
} @Test public void shouldAllowComments() { String configJson = "{'pojoMapping' /* comment*/ :false} // other comment"; AutumnConfig result = AutumnConfig.fromJsonString(null, configJson); assertNotNull(result); assertFalse(result.getPojoMapping()); }