use of com.nedap.archie.rm.datavalues.quantity.datetime.DvTime in project openEHR_SDK by ehrbase.
the class DvTimeValidatorTest method testValidate_Range.
@Test
void testValidate_Range() throws Exception {
var node = parseNode("/webtemplate_nodes/dv_time_range.json");
OffsetDateTime value;
var result = validator.validate(new DvTime(LocalTime.of(11, 30)), node);
assertTrue(result.isEmpty());
result = validator.validate(new DvTime(LocalTime.of(8, 30)), node);
assertEquals(1, result.size());
result = validator.validate(new DvTime(LocalTime.of(20, 30)), node);
assertEquals(1, result.size());
}
Aggregations