public List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, Optional<Config> runtimeConfig) { if (runtimeConfig.isPresent()) { return this.cs.getOwnImports(configKey, this.version, runtimeConfig); } return this.cs.getOwnImports(configKey, this.version); }
public static void addConfigStoreImports(ConfigStore mockup, String version, ConfigKeyPath self, ConfigKeyPath... configKeyPaths) { List<ConfigKeyPath> ownImports = new ArrayList<ConfigKeyPath>(); for (ConfigKeyPath p : configKeyPaths) { ownImports.add(p); } when(mockup.getOwnImports(self, version)).thenReturn(ownImports); }
identityImports.add(espressoTag); identityImports.add(highPriorityTag); when(mockConfigStore.getOwnImports(identity, version)).thenReturn(identityImports); when(mockConfigStore.getOwnImports(espressoTag, version)).thenReturn(espressoImports);
identityImports.add(espressoTag); identityImports.add(highPriorityTag); when(mockConfigStore.getOwnImports(identity, version)).thenReturn(identityImports); when(mockConfigStore.getOwnImports(espressoTag, version)).thenReturn(espressoImports);
public List<ConfigKeyPath> getOwnImports(ConfigKeyPath configKey, Optional<Config> runtimeConfig) { if (runtimeConfig.isPresent()) { return this.cs.getOwnImports(configKey, this.version, runtimeConfig); } return this.cs.getOwnImports(configKey, this.version); }