use of com.ibm.cohort.datarow.model.SimpleDataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testIsTypeType.
@Test
public void testIsTypeType() {
DataRow row = new SimpleDataRow(Collections.emptyMap());
assertTrue(resolver.is(row, DataRow.class));
}
use of com.ibm.cohort.datarow.model.SimpleDataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testRowEqualsRow.
@Test
public void testRowEqualsRow() {
Map<String, Object> expectations = new HashMap<>();
expectations.put("field1", "Hello");
DataRow left = new SimpleDataRow(expectations);
DataRow right = new SimpleDataRow(expectations);
assertTrue(resolver.objectEqual(left, right));
assertTrue(resolver.objectEquivalent(left, right));
}
use of com.ibm.cohort.datarow.model.SimpleDataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testInvalidObjectAsTypeStrict.
@Test
public void testInvalidObjectAsTypeStrict() {
DataRow row = new SimpleDataRow(Collections.emptyMap());
assertThrows(InvalidCast.class, () -> resolver.as(row, String.class, true));
}
Aggregations