use of org.exoplatform.services.command.impl.CommandService in project kernel by exoplatform.
the class CommandServiceTest method testStringConf.
public void testStringConf() throws Exception {
CommandService cservice = (CommandService) container.getComponentInstanceOfType(CommandService.class);
Catalog c = cservice.getCatalog();
assertNull(c.getCommand("StrCommand"));
cservice.putCatalog(new ByteArrayInputStream(IS.getBytes()));
Catalog c1 = cservice.getCatalog();
assertNotNull(c1.getCommand("StrCommand"));
}
Aggregations