assertEquals(0, agent.adaptorCount());
String name = agent.processAddCommand("add test = FileAdaptor raw " +testFile.getCanonicalPath() + " 0");
assertEquals(1, agent.adaptorCount());
assertEquals(name, "adaptor_test");
Chunk c = chunks.waitForAChunk(5000);
assertNotNull(c);
String dat = new String(c.getData());
assertTrue(dat.startsWith("0 abcdefghijklmnopqrstuvwxyz"));
assertTrue(dat.endsWith("9 abcdefghijklmnopqrstuvwxyz\n"));
assertTrue(c.getDataType().equals("raw"));
if(agent.adaptorCount() > 0)
agent.stopAdaptor("adaptor_test", false);
}
agent.shutdown();
}