List of usage examples for com.fasterxml.jackson.databind.node BooleanNode TRUE
BooleanNode TRUE
To view the source code for com.fasterxml.jackson.databind.node BooleanNode TRUE.
Click Source Link
From source file:org.openmhealth.reference.domain.SchemaTest.java
/** * Test that validating data when the data is invalid throws an exception. *//* w w w . ja v a 2 s . c o m*/ @Test(expected = OmhException.class) public void testValidateDataDataInvalid() { Schema schema = new Schema(ID, VERSION, SCHEMA, CONTROLLER); schema.validateData(OWNER, META_DATA, BooleanNode.TRUE); }
From source file:com.sri.save.florahttp.FloraJsonServer.java
public BooleanNode command(String cmd) throws FloraJsonServerException { try {//w ww . j av a2 s. c o m boolean result = engine.floraCommand(cmd); if (result) return BooleanNode.TRUE; else return BooleanNode.FALSE; } catch (Exception ex) { ex.printStackTrace(); throw new FloraJsonServerException(ex.getMessage()); } }