use of com.google.api.server.spi.config.validation.PropertyParameterNameConflictException in project endpoints-java by cloudendpoints.
the class JsonConfigWriterTest method bodyFieldConflictsWithParameter.
@Test
@Ignore("ignored until we find a proper solution")
public void bodyFieldConflictsWithParameter() throws Exception {
final class Endpoint {
@SuppressWarnings("unused")
public void set(@Named("date") String id, Bean resource) {
}
}
new ApiConfigAnnotationReader().loadEndpointMethods(serviceContext, Endpoint.class, apiConfig.getApiClassConfig().getMethods());
try {
writer.writeConfig(Collections.singleton(apiConfig));
fail();
} catch (PropertyParameterNameConflictException e) {
// Expected.
}
}
Aggregations