@Test public void testResolve_ConfigDependencies() { List<String> dependencies = new ArrayList<String>(); String dependency1 = "one"; String dependency2 = "two"; dependencies.add(dependency1); dependencies.add(dependency2); ComponentInfo info = new ComponentInfo(); ComponentInfo parentInfo = new ComponentInfo(); parentInfo.setConfigDependencies(dependencies); assertEquals(dependencies, resolveComponent(info, parentInfo).getModuleInfo().getConfigDependencies()); info.setConfigDependencies(dependencies); parentInfo.setConfigDependencies(null); assertEquals(dependencies, resolveComponent(info, parentInfo).getModuleInfo().getConfigDependencies()); List<String> dependencies2 = new ArrayList<String>(); String dependency3 = "two"; String dependency4 = "four"; dependencies2.add(dependency3); dependencies2.add(dependency4); info.setConfigDependencies(dependencies2); parentInfo.setConfigDependencies(dependencies); List<String> resolvedDependencies = resolveComponent(info, parentInfo).getModuleInfo().getConfigDependencies(); assertEquals(2, resolvedDependencies.size()); assertTrue(resolvedDependencies.contains(dependency3)); assertTrue(resolvedDependencies.contains(dependency4)); }
@Override public ComponentInfo getModuleInfo() { return componentInfo; }
ComponentModule extends BaseModule<ComponentModule, ComponentInfo> implements Validable { @Override public ComponentInfo getModuleInfo() { return componentInfo; } }
ComponentModule extends BaseModule<ComponentModule, ComponentInfo> implements Validable { @Override public ComponentInfo getModuleInfo() { return componentInfo; } ComponentModule(ComponentInfo componentInfo); }
ComponentModule extends BaseModule<ComponentModule, ComponentInfo> implements Validable { @Override public ComponentInfo getModuleInfo() { return componentInfo; } ComponentModule(ComponentInfo componentInfo); @Override void resolve(ComponentModule parent, Map<String, StackModule> allStacks,
	    Map<String, ServiceModule> commonServices, Map<String, ExtensionModule> extensions); @Override ComponentInfo getModuleInfo(); @Override boolean isDeleted(); @Override String getId(); @Override boolean isValid(); @Override void setValid(boolean valid); @Override void addError(String error); @Override Collection<String> getErrors(); @Override void addErrors(Collection<String> errors); @Override String toString(); }
ComponentModule extends BaseModule<ComponentModule, ComponentInfo> implements Validable { @Override public ComponentInfo getModuleInfo() { return componentInfo; } ComponentModule(ComponentInfo componentInfo); @Override void resolve(ComponentModule parent, Map<String, StackModule> allStacks,
	    Map<String, ServiceModule> commonServices, Map<String, ExtensionModule> extensions); @Override ComponentInfo getModuleInfo(); @Override boolean isDeleted(); @Override String getId(); @Override boolean isValid(); @Override void setValid(boolean valid); @Override void addError(String error); @Override Collection<String> getErrors(); @Override void addErrors(Collection<String> errors); @Override String toString();  }