I have something like
@Test(expected = IllegalArgumentException.class)
public void cdIntoNonExistantFolder() {
cdTool.changeDirectory("nonexistant");
assertThat(cdTool.getStatusCode(), not(equalTo(0)));
}
I believe the assertThat
does not run as changeDirectory
will throw the exception. Is it possible to make it still run?