use of com.yahoo.vespa.configdefinition.IlscriptsConfig in project vespa by vespa-engine.
the class ScriptManagerTestCase method requireThatUnknownDocumentTypeReturnsNull.
@Test
public void requireThatUnknownDocumentTypeReturnsNull() {
DocumentTypeManager typeMgr = new DocumentTypeManager();
typeMgr.configure("file:src/test/cfg/documentmanager_inherit.cfg");
ScriptManager scriptMgr = new ScriptManager(typeMgr, new IlscriptsConfig(new IlscriptsConfig.Builder()), null);
for (Iterator<DocumentType> it = typeMgr.documentTypeIterator(); it.hasNext(); ) {
assertNull(scriptMgr.getScript(it.next()));
}
assertNull(scriptMgr.getScript(new DocumentType("unknown")));
}
Aggregations