@Test public void testResolve_Dependencies() { List<DependencyInfo> dependencies = new ArrayList<DependencyInfo>(); DependencyInfo dependency1 = new DependencyInfo(); dependency1.setName("service/one"); DependencyInfo dependency2 = new DependencyInfo(); dependency2.setName("service/two"); dependencies.add(dependency1); dependencies.add(dependency2); ComponentInfo info = new ComponentInfo(); ComponentInfo parentInfo = new ComponentInfo(); parentInfo.setDependencies(dependencies); assertEquals(dependencies, resolveComponent(info, parentInfo).getModuleInfo().getDependencies()); info.setDependencies(dependencies); parentInfo.setDependencies(null); assertEquals(dependencies, resolveComponent(info, parentInfo).getModuleInfo().getDependencies()); List<DependencyInfo> dependencies2 = new ArrayList<DependencyInfo>(); DependencyInfo dependency3 = new DependencyInfo(); dependency3.setName("service/two"); DependencyInfo dependency4 = new DependencyInfo(); dependency4.setName("service/four"); dependencies2.add(dependency3); dependencies2.add(dependency4); info.setDependencies(dependencies2); parentInfo.setDependencies(dependencies); List<DependencyInfo> resolvedDependencies = resolveComponent(info, parentInfo).getModuleInfo().getDependencies(); assertEquals(3, resolvedDependencies.size()); assertTrue(resolvedDependencies.contains(dependency1)); 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();  }