@Test public void testResolve_Cardinality() { String cardinality = "foo"; ComponentInfo info = new ComponentInfo(); assertEquals("0+", resolveComponent(info, null).getModuleInfo().getCardinality()); ComponentInfo parentInfo = new ComponentInfo(); info = new ComponentInfo(); parentInfo.setCardinality(cardinality); assertEquals("foo", resolveComponent(info, parentInfo).getModuleInfo().getCardinality()); info.setCardinality(cardinality); parentInfo.setCardinality(null); assertEquals(cardinality, resolveComponent(info, parentInfo).getModuleInfo().getCardinality()); String cardinality2 = "foo2"; info.setCardinality(cardinality2); parentInfo.setCardinality(cardinality); assertEquals(cardinality2, resolveComponent(info, parentInfo).getModuleInfo().getCardinality()); }
@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();  }