use of com.linkedin.restli.common.ResourceSpec in project rest.li by linkedin.
the class TestResourceSchemaToResourceSpecTranslator method testTranslator.
@Test(dataProvider = "restspecsAndBuilders")
public void testTranslator(RichResourceSchema resourceSchema, String subresource, Class<?> resourceBuildersClass) throws Exception {
if (subresource != null) {
resourceSchema = resourceSchema.getSubresource(subresource);
}
ResourceSpec actualResourceSpec = translator.translate(resourceSchema.getResourceSchema());
ResourceSpec expectedResourceSpec = getResourceSpecFromClientBuilders(resourceBuildersClass);
compareResourceSpecs(actualResourceSpec, expectedResourceSpec, resourceSchema);
}
Aggregations