ComponentManager { public ComponentManager load(String resourceLocation) { Resource resource = ResourceUtils.createResource(resourceLocation); return load(resource); } ComponentManager(String serverName);  ComponentManager(String serverName, ComponentLogger logger); protected  ComponentManager(String serverName, ComponentRepository repo); ComponentRepository getRepository(); ConfigProperties getProperties(); ComponentConfig getConfigIni(); String getServerName(); void setServerName(String serverName); ComponentRepository start(String resourceLocation); ComponentRepository start(Resource resource); ComponentManager load(String resourceLocation); ComponentManager load(Resource resource); ComponentManager init(); void start();  }
@Test(expectedExceptions = ComponentConfigException.class) public void test_load_badFileType() { ComponentManager mgr = new ComponentManager("testserver"); try { mgr.load("classpath:com/opengamma/component/test-badfiletype.txt"); } catch (ComponentConfigException ex) { assertTrue(ex.getMessage().contains("Unknown file format")); throw ex; } }
@Test(expectedExceptions = ComponentConfigException.class) public void test_load_properties_noManagerNext() { ComponentManager mgr = new ComponentManager("testserver"); try { mgr.load("classpath:com/opengamma/component/test-nomanagernext.properties"); } catch (ComponentConfigException ex) { assertTrue(ex.getMessage().contains("The properties file must contain the key 'MANAGER.NEXT.FILE' to specify the next file to load")); throw ex; } }