use of com.ibm.cohort.datarow.model.DataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testResolveTypeIsType.
@Test
public void testResolveTypeIsType() {
DataRow row = new SimpleDataRow(Collections.emptyMap());
assertEquals(row.getClass(), resolver.resolveType(row));
}
use of com.ibm.cohort.datarow.model.DataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testResolvePathForMissingFieldIsNull.
@Test
public void testResolvePathForMissingFieldIsNull() {
DataRow row = new SimpleDataRow(Collections.emptyMap());
assertNull(resolver.resolvePath(row, String.valueOf("does-not-exist")));
}
use of com.ibm.cohort.datarow.model.DataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testInvalidObjectAsTypeNonStrict.
@Test
public void testInvalidObjectAsTypeNonStrict() {
DataRow row = new SimpleDataRow(Collections.emptyMap());
assertNull(resolver.as(row, String.class, false));
}
use of com.ibm.cohort.datarow.model.DataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testIsTypeNull.
@Test
public void testIsTypeNull() {
DataRow row = null;
assertNull(resolver.is(row, DataRow.class));
}
use of com.ibm.cohort.datarow.model.DataRow in project quality-measure-and-cohort-service by Alvearie.
the class DataRowModelResolverTest method testObjectAsTypeStrict.
@Test
public void testObjectAsTypeStrict() {
DataRow row = new SimpleDataRow(Collections.emptyMap());
assertTrue(resolver.as(row, DataRow.class, true) instanceof DataRow);
}
Aggregations