use of io.crnk.meta.model.MetaType in project crnk-framework by crnk-project.
the class MetaLookupTest method testPrimitiveDate.
@Test
public void testPrimitiveDate() {
MetaType meta = resourceProvider.getMeta(Date.class);
Assert.assertEquals("base.date", meta.getId());
Assert.assertEquals(Date.class, meta.getImplementationClass());
}
use of io.crnk.meta.model.MetaType in project crnk-framework by crnk-project.
the class MetaLookupTest method testPrimitiveInteger.
@Test
public void testPrimitiveInteger() {
MetaType meta = resourceProvider.getMeta(Integer.class);
Assert.assertEquals("base.integer", meta.getId());
Assert.assertEquals(Integer.class, meta.getImplementationClass());
MetaType primitiveMeta = resourceProvider.getMeta(int.class);
Assert.assertSame(meta, primitiveMeta);
}
use of io.crnk.meta.model.MetaType in project crnk-framework by crnk-project.
the class MetaLookupTest method testPrimitiveString.
@Test
public void testPrimitiveString() {
MetaType meta = resourceProvider.getMeta(String.class);
Assert.assertEquals("base.string", meta.getId());
Assert.assertEquals(String.class, meta.getImplementationClass());
}
use of io.crnk.meta.model.MetaType in project crnk-framework by crnk-project.
the class MetaLookupTest method testStringArray.
@Test
public void testStringArray() {
MetaType meta = resourceProvider.getMeta(String[].class);
Assert.assertEquals("base.string$array", meta.getId());
Assert.assertEquals(String[].class, meta.getImplementationClass());
}
use of io.crnk.meta.model.MetaType in project crnk-framework by crnk-project.
the class MetaLookupTest method testPrimitiveUUID.
@Test
public void testPrimitiveUUID() {
MetaType meta = resourceProvider.getMeta(UUID.class);
Assert.assertEquals("base.uuid", meta.getId());
Assert.assertEquals(UUID.class, meta.getImplementationClass());
}
Aggregations