assertEquals("bb", cfg.getSupportedLocales().get(1));
}
public void testAbsoluteOrderingConfig() throws Exception
{
FacesConfig cfg = _impl.getFacesConfig(getClass().getResourceAsStream(
"absolute-ordering-config.xml"), "absolute-ordering-config.xml");
assertNotNull(cfg);
assertEquals("true", cfg.getMetadataComplete());
assertEquals("a",cfg.getName());
List<OrderSlot> orderList = cfg.getAbsoluteOrdering().getOrderList();
assertEquals("b", ((FacesConfigNameSlot) orderList.get(0)).getName());
assertEquals("c", ((FacesConfigNameSlot) orderList.get(1)).getName());
assertEquals(org.apache.myfaces.config.impl.digester.elements.ConfigOthersSlotImpl.class, orderList.get(2).getClass());
assertEquals("d", ((FacesConfigNameSlot) orderList.get(3)).getName());
assertTrue(cfg.getApplications().isEmpty());
assertTrue(cfg.getComponents().isEmpty());
assertTrue(cfg.getConverters().isEmpty());
assertTrue(cfg.getFactories().isEmpty());
assertTrue(cfg.getLifecyclePhaseListener().isEmpty());
assertTrue(cfg.getManagedBeans().isEmpty());
assertTrue(cfg.getNavigationRules().isEmpty());
assertTrue(cfg.getRenderKits().isEmpty());
assertTrue(cfg.getValidators().isEmpty());
}