Datasets:
apcl
/

Modalities:
Text
Formats:
webdataset
Libraries:
Datasets
WebDataset
mcmillco's picture
init
e789b06
raw
history blame
568 Bytes
TDAT: public void testHasCorrectArguments() {
CmdType cmd;
boolean result;
cmd = CmdType.ADDDOMAIN;
// Test bogus number
result = cmd.hasCorrectArguments(-1);
assertEquals(false, result);
// Test actual number
result = cmd.hasCorrectArguments(cmd.getArguments());
assertEquals(true, result);
// Test known bad number
result = cmd.hasCorrectArguments(cmd.getArguments() - 1);
assertEquals(false, result);
}
COM: <s> test the has correct arguments method </s>