use of com.google.api.server.spi.config.ResourceSchema in project endpoints-java by cloudendpoints.
the class ResourceSchemaProviderTest method testConfigCustomResourceSerializedInheritedPropertyReturnsSchema.
@Test
public void testConfigCustomResourceSerializedInheritedPropertyReturnsSchema() {
config.getSerializationConfig().addSerializationConfig(SinglePropertyResourceSerializer.class);
ResourceSchema schema = getResourceSchema(SinglePropertyBeanChild.class);
String name = SinglePropertyBeanChild.class.getSimpleName();
assertThat(schema.getProperties().keySet()).containsExactly(name);
assertEquals(Long.class, schema.getProperties().get(name).getJavaType());
}
Aggregations