Example usage for com.fasterxml.jackson.databind.node BooleanNode TRUE

List of usage examples for com.fasterxml.jackson.databind.node BooleanNode TRUE

Introduction

In this page you can find the example usage for com.fasterxml.jackson.databind.node BooleanNode TRUE.

Prototype

BooleanNode TRUE

To view the source code for com.fasterxml.jackson.databind.node BooleanNode TRUE.

Click Source Link

Usage

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());
    }
}