use of com.yahoo.vespa.model.test.utils.VespaModelCreatorWithFilePkg in project vespa by vespa-engine.
the class ContainerModelBuilderTest method component_includes_are_added.
@Test
public void component_includes_are_added() {
VespaModelCreatorWithFilePkg creator = new VespaModelCreatorWithFilePkg("src/test/cfg/application/include_dirs");
VespaModel model = creator.create(true);
ContainerCluster cluster = model.getContainerClusters().get("default");
Map<ComponentId, Component<?, ?>> componentsMap = cluster.getComponentsMap();
Component<?, ?> example = componentsMap.get(ComponentId.fromString("test.Exampledocproc"));
assertThat(example.getComponentId().getName(), is("test.Exampledocproc"));
}
use of com.yahoo.vespa.model.test.utils.VespaModelCreatorWithFilePkg in project vespa by vespa-engine.
the class GlobalDistributionValidatorTest method throws_exception_if_referenced_document_not_global_end_to_end.
@Test
public void throws_exception_if_referenced_document_not_global_end_to_end() {
exceptionRule.expect(IllegalArgumentException.class);
exceptionRule.expectMessage("The following document types are referenced from other documents, but are not globally distributed: 'parent'");
new VespaModelCreatorWithFilePkg("src/test/cfg/application/validation/global_distribution_validation/").create();
}
use of com.yahoo.vespa.model.test.utils.VespaModelCreatorWithFilePkg in project vespa by vespa-engine.
the class ContainerIncludeTest method includeNonDirectory.
@Test(expected = IllegalArgumentException.class)
public void includeNonDirectory() {
VespaModelCreatorWithFilePkg creator = new VespaModelCreatorWithFilePkg("src/test/cfg/container/data/containerinclude4/");
creator.create();
}
use of com.yahoo.vespa.model.test.utils.VespaModelCreatorWithFilePkg in project vespa by vespa-engine.
the class ContainerIncludeTest method include_empty_directory.
@Test
public void include_empty_directory() {
VespaModelCreatorWithFilePkg creator = new VespaModelCreatorWithFilePkg("src/test/cfg/container/data/containerinclude6/");
creator.create();
}
use of com.yahoo.vespa.model.test.utils.VespaModelCreatorWithFilePkg in project vespa by vespa-engine.
the class ContainerIncludeTest method includeNonExistent.
@Test(expected = IllegalArgumentException.class)
public void includeNonExistent() {
VespaModelCreatorWithFilePkg creator = new VespaModelCreatorWithFilePkg("src/test/cfg/container/data/containerinclude2/");
creator.create();
}
Aggregations