@Test public void testGetOwnImports() { Collection<ConfigKeyPath> imports1 = this.store.getOwnImports(this.child1Path, this.version); Assert.assertEquals(imports1.size(), 1); Assert.assertTrue(imports1.contains(this.child1Path)); Collection<ConfigKeyPath> imports2 = this.store.getOwnImports(this.child2Path, this.version); Assert.assertEquals(imports2.size(), 0); }
@Override public List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version) { return getOwnImports(configKey, version, Optional.<Config>absent()); }
ZipFileConfigStore implements ConfigStore { @Override public List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version) { return getOwnImports(configKey, version, Optional.<Config>absent()); } }
ZipFileConfigStore implements ConfigStore { @Override public List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version) { return getOwnImports(configKey, version, Optional.<Config>absent()); } ZipFileConfigStore(ZipFileSystem fs, URI logicalStoreRoot, String version, String storePrefix); }
ZipFileConfigStore implements ConfigStore { @Override public List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version) { return getOwnImports(configKey, version, Optional.<Config>absent()); } ZipFileConfigStore(ZipFileSystem fs, URI logicalStoreRoot, String version, String storePrefix); @Override String getCurrentVersion(); @Override URI getStoreURI(); @Override Collection<ConfigKeyPath> getChildren(ConfigKeyPath configKey, String version); @Override List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version); List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version, Optional<Config> runtimeConfig); @Override Config getOwnConfig(ConfigKeyPath configKey, String version); }
ZipFileConfigStore implements ConfigStore { @Override public List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version) { return getOwnImports(configKey, version, Optional.<Config>absent()); } ZipFileConfigStore(ZipFileSystem fs, URI logicalStoreRoot, String version, String storePrefix); @Override String getCurrentVersion(); @Override URI getStoreURI(); @Override Collection<ConfigKeyPath> getChildren(ConfigKeyPath configKey, String version); @Override List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version); List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, String version, Optional<Config> runtimeConfig); @Override Config getOwnConfig(ConfigKeyPath configKey, String version);  }