test_class.declarator: defs
test_class.original_string: Collection<ModuleDefinition> defs;
test_class.type: Collection<ModuleDefinition>
test_class.var_name: defs
test_class.file: cosmic-core/server/src/test/java/com/cloud/spring/module/factory/ModuleBasedContextFactoryTest.java
test_class.identifier: ModuleBasedContextFactoryTest
test_case.body: @Test
      public void testBeans() throws IOException {
          final ModuleBasedContextFactory factory = new ModuleBasedContextFactory();
          final ModuleDefinitionSet set = factory.loadModules(defs, "base");
  
          testBeansInContext(set, "base", 1, new String[]{"base"}, new String[]{"child1", "child2", "child1-1"});
          testBeansInContext(set, "child1", 2, new String[]{"base", "child1"}, new String[]{"child2", "child1-1"});
          testBeansInContext(set, "child2", 4, new String[]{"base", "child2"}, new String[]{"child1", "child1-1"});
          testBeansInContext(set, "child1-1", 3, new String[]{"base", "child1", "child1-1"}, new String[]{"child2"});
      }
test_case.class_method_signature: ModuleBasedContextFactoryTest.testBeans()
test_case.full_signature: @Test public void testBeans()
test_case.identifier: testBeans
test_case.invocations: loadModules testBeansInContext testBeansInContext testBeansInContext testBeansInContext
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testBeans()
focal_class.file: cosmic-core/server/src/main/java/com/cloud/spring/module/factory/ModuleBasedContextFactory.java
focal_class.identifier: ModuleBasedContextFactory
focal_class.class_method_signature: ModuleBasedContextFactory.loadModules(final Collection<ModuleDefinition> defs, final String root)
focal_class.full_signature: public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root)
focal_class.identifier: loadModules
focal_class.modifiers: public
focal_class.parameters: (final Collection<ModuleDefinition> defs, final String root)
focal_class.return: ModuleDefinitionSet
focal_class.signature: ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root)
focal_class.class_method_signature: ModuleBasedContextFactory.wireUpModules(final String root, final Collection<ModuleDefinition> defs)
focal_class.full_signature: protected Map<String, ModuleDefinition> wireUpModules(final String root, final Collection<ModuleDefinition> defs)
focal_class.identifier: wireUpModules
focal_class.modifiers: protected
focal_class.parameters: (final String root, final Collection<ModuleDefinition> defs)
focal_class.return: Map<String, ModuleDefinition>
focal_class.signature: Map<String, ModuleDefinition> wireUpModules(final String root, final Collection<ModuleDefinition> defs)
focal_class.class_method_signature: ModuleBasedContextFactory.traverse(final ModuleDefinition base, final Map<String, ModuleDefinition> result)
focal_class.full_signature: protected Map<String, ModuleDefinition> traverse(final ModuleDefinition base, final Map<String, ModuleDefinition> result)
focal_class.identifier: traverse
focal_class.modifiers: protected
focal_class.parameters: (final ModuleDefinition base, final Map<String, ModuleDefinition> result)
focal_class.return: Map<String, ModuleDefinition>
focal_class.signature: Map<String, ModuleDefinition> traverse(final ModuleDefinition base, final Map<String, ModuleDefinition> result)
focal_method.body: public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root) throws IOException {
  
          final Map<String, ModuleDefinition> modules = wireUpModules(root, defs);
  
          final DefaultModuleDefinitionSet moduleSet = new DefaultModuleDefinitionSet(modules, root);
          moduleSet.load();
  
          return moduleSet;
      }
focal_method.class_method_signature: ModuleBasedContextFactory.loadModules(final Collection<ModuleDefinition> defs, final String root)
focal_method.full_signature: public ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root)
focal_method.identifier: loadModules
focal_method.invocations: wireUpModules load
focal_method.modifiers: public
focal_method.parameters: (final Collection<ModuleDefinition> defs, final String root)
focal_method.return: ModuleDefinitionSet
focal_method.signature: ModuleDefinitionSet loadModules(final Collection<ModuleDefinition> defs, final String root)