@Test void notRootConfig() { final PropertyEditorRegistry registry = new PropertyEditorRegistry(); final RepositoryModel model = new RepositoryModelBuilder() .create(new ComponentManager.AllServices(emptyMap()), singleton(new ComponentFamilyMeta("test", emptyList(), "noicon", "test", "test") { { final ParameterMeta store = new ParameterMeta(null, DataStore1.class, ParameterMeta.Type.OBJECT, "config.store", "store", new String[0], emptyList(), emptyList(), new HashMap<String, String>() { { put("tcomp::configurationtype::type", "datastore"); put("tcomp::configurationtype::name", "testDatastore"); } }, false); final ParameterMeta wrapper = new ParameterMeta(null, WrappingStore.class, ParameterMeta.Type.OBJECT, "config", "config", new String[0], singletonList(store), emptyList(), emptyMap(), false); getPartitionMappers() .put("test", new PartitionMapperMeta(this, "mapper", "noicon", 1, PartitionMapper1.class, () -> singletonList(wrapper), m -> null, () -> (a, b) -> null, true, false) { }); } }), new MigrationHandlerFactory( new ReflectionService(new ParameterModelService(registry), registry))); final List<Config> configs = model.getFamilies().stream().flatMap(f -> f.getConfigs().get().stream()).collect(toList()); assertEquals(1, configs.size()); }
public RepositoryModel create(final ComponentManager.AllServices services, final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory) { final List<Family> families = familyMetas .stream() .map(familyMeta -> createConfigForFamily(services, migrationHandlerFactory, familyMeta)) .collect(toList()); return new RepositoryModel(families); }
RepositoryModelBuilder { public RepositoryModel create(final ComponentManager.AllServices services, final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory) { final List<Family> families = familyMetas .stream() .map(familyMeta -> createConfigForFamily(services, migrationHandlerFactory, familyMeta)) .collect(toList()); return new RepositoryModel(families); } }
RepositoryModelBuilder { public RepositoryModel create(final ComponentManager.AllServices services, final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory) { final List<Family> families = familyMetas .stream() .map(familyMeta -> createConfigForFamily(services, migrationHandlerFactory, familyMeta)) .collect(toList()); return new RepositoryModel(families); }  }
RepositoryModelBuilder { public RepositoryModel create(final ComponentManager.AllServices services, final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory) { final List<Family> families = familyMetas .stream() .map(familyMeta -> createConfigForFamily(services, migrationHandlerFactory, familyMeta)) .collect(toList()); return new RepositoryModel(families); }  RepositoryModel create(final ComponentManager.AllServices services,
            final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory); }
RepositoryModelBuilder { public RepositoryModel create(final ComponentManager.AllServices services, final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory) { final List<Family> families = familyMetas .stream() .map(familyMeta -> createConfigForFamily(services, migrationHandlerFactory, familyMeta)) .collect(toList()); return new RepositoryModel(families); }  RepositoryModel create(final ComponentManager.AllServices services,
            final Collection<ComponentFamilyMeta> familyMetas, final MigrationHandlerFactory migrationHandlerFactory);  }