WebConfiguration configuration3 = new WebConfiguration(config3);
assertEquals("a/b/c/cayenne-z.xml", configuration3.getConfigurationLocation());
}
public void testServletConfigurationLocation_Name() {
MockServletConfig config1 = new MockServletConfig();
config1.setServletName("cayenne-x");
WebConfiguration configuration1 = new WebConfiguration(config1);
assertEquals("cayenne-x.xml", configuration1.getConfigurationLocation());
MockServletConfig config2 = new MockServletConfig();
config2.setServletName("cayenne-y.xml");
WebConfiguration configuration2 = new WebConfiguration(config2);
assertEquals("cayenne-y.xml", configuration2.getConfigurationLocation());
MockServletConfig config3 = new MockServletConfig();
config3.setServletName("a/b/c/cayenne-z.xml");
WebConfiguration configuration3 = new WebConfiguration(config3);
assertEquals("a/b/c/cayenne-z.xml", configuration3.getConfigurationLocation());
}