use of org.smartdata.model.CmdletDescriptor in project SSM by Intel-bigdata.
the class TestCmdletDescriptor method testStringToDescriptor.
@Test
public void testStringToDescriptor() throws Exception {
String cmd = "someaction -arg1 -arg2 /dir/foo ; cache -file /testFile; action3";
CmdletDescriptor des = CmdletDescriptor.fromCmdletString(cmd);
Assert.assertTrue(des.getActionSize() == 3);
Assert.assertTrue(des.getActionName(2).equals("action3"));
Assert.assertTrue(des.getActionArgs(2).size() == 0);
}
Aggregations