Assert.assertEquals("partial", it.next());
}
@Test
public void testSetCompletionStart() {
CompletionInfo ci = new CommandCompletions();
Assert.assertEquals(-1, ci.getCompletionStart());
ci.setCompletionStart(-1);
Assert.assertEquals(-1, ci.getCompletionStart());
ci.setCompletionStart(1);
Assert.assertEquals(1, ci.getCompletionStart());
ci.setCompletionStart(1);
Assert.assertEquals(1, ci.getCompletionStart());
try {
ci.setCompletionStart(2);
Assert.fail("no exception");
} catch (IllegalArgumentException ex) {
// expected
}
}