use of com.yahoo.config.model.application.provider.StaticConfigDefinitionRepo in project vespa by vespa-engine.
the class StaticConfigDefinitionRepoTest method testThatRepoIsCorrectlyInitialized.
@Test
public void testThatRepoIsCorrectlyInitialized() throws IOException {
File topDir = folder.newFolder();
File defDir = new File(topDir, "classes");
defDir.mkdir();
addFile(defDir, new ConfigDefinitionKey("foo", "foons"), "namespace=foons\nval int\n");
addFile(defDir, new ConfigDefinitionKey("bar", "barns"), "namespace=barns\nval string\n");
ConfigDefinitionRepo repo = new StaticConfigDefinitionRepo(defDir);
assertThat(repo.getConfigDefinitions().size(), is(2));
}
Aggregations