RepositoryManager implements RepositoryResolver, HttpClientDependent { public void setModelFactory(ModelFactory modelFactory) { Objects.requireNonNull(modelFactory); this.modelFactory = modelFactory; } protected  RepositoryManager(); protected  RepositoryManager(Map<String, Repository> initializedRepositories); boolean isInitialized(); @Override abstract HttpClient getHttpClient(); @Override abstract void setHttpClient(HttpClient httpClient); ModelFactory getModelFactory(); void setModelFactory(ModelFactory modelFactory); @Deprecated void initialize(); void init(); @Deprecated Repository getSystemRepository(); String getNewRepositoryID(String baseName); Set<String> getRepositoryIDs(); boolean hasRepositoryConfig(String repositoryID); RepositoryConfig getRepositoryConfig(String repositoryID); void addRepositoryConfig(RepositoryConfig config); @Deprecated boolean removeRepositoryConfig(String repositoryID); boolean isSafeToRemove(String repositoryID); boolean removeRepository(String repositoryID); @Override Repository getRepository(String identity); Set<String> getInitializedRepositoryIDs(); Collection<Repository> getInitializedRepositories(); Collection<Repository> getAllRepositories(); RepositoryInfo getRepositoryInfo(String id); Collection<RepositoryInfo> getAllRepositoryInfos(); Collection<RepositoryInfo> getAllUserRepositoryInfos(); abstract Collection<RepositoryInfo> getAllRepositoryInfos(boolean skipSystemRepo); void refresh(); void shutDown(); abstract URL getLocation(); static final String NAMESPACE; final static IRI PROXIED_ID; }
@Test public void testSetModelFactory() { ModelFactory f = new LinkedHashModelFactory(); subject.setModelFactory(f); assertThat(subject.getModelFactory()).isEqualTo(f); }
@Test(expected = NullPointerException.class) public void testSetModelFactoryWithNull() { subject.setModelFactory(null); }