use of org.camunda.bpm.engine.rest.hal.cache.HalRelationCacheConfigurationException in project camunda-bpm-platform by camunda.
the class HalResourceCacheTest method testCacheInvalidParameterName.
@Test
public void testCacheInvalidParameterName() {
HalRelationCacheConfiguration configuration = new HalRelationCacheConfiguration();
configuration.setCacheImplementationClass(DefaultHalResourceCache.class);
configuration.addCacheConfiguration(HalUser.class, Collections.<String, Object>singletonMap("unknown", "property"));
try {
contextListener.configureCaches(configuration);
fail("Exception expected");
} catch (HalRelationCacheConfigurationException e) {
assertTrue(e.getMessage().contains("setter"));
}
}
Aggregations