Search in sources :

Example 1 with EntityModelBuilder

use of dev.morphia.mapping.codec.pojo.EntityModelBuilder in project morphia by MorphiaOrg.

the class EntityModelTest method testFindParameterization.

@Test
public void testFindParameterization() {
    EntityModel model = new EntityModelBuilder(getMapper(), Child.class).build();
    assertEquals(model.getProperty("someField").getType(), LocalDate.class);
}
Also used : EntityModelBuilder(dev.morphia.mapping.codec.pojo.EntityModelBuilder) EntityModel(dev.morphia.mapping.codec.pojo.EntityModel) Test(org.testng.annotations.Test)

Example 2 with EntityModelBuilder

use of dev.morphia.mapping.codec.pojo.EntityModelBuilder in project morphia by mongodb.

the class EntityModelTest method testFindParameterization.

@Test
public void testFindParameterization() {
    EntityModel model = new EntityModelBuilder(getMapper(), Child.class).build();
    assertEquals(model.getProperty("someField").getType(), LocalDate.class);
}
Also used : EntityModelBuilder(dev.morphia.mapping.codec.pojo.EntityModelBuilder) EntityModel(dev.morphia.mapping.codec.pojo.EntityModel) Test(org.testng.annotations.Test)

Aggregations

EntityModel (dev.morphia.mapping.codec.pojo.EntityModel)2 EntityModelBuilder (dev.morphia.mapping.codec.pojo.EntityModelBuilder)2 Test (org.testng.annotations.Test)2