My Test: this is where it underlines the stuff after sax. and insists that I have a try-catch block.... but the internet says that the proper way to test for exception is @Test(expected=IllegalArgumentException.class)
@Test(expected= XMLClientNotFoind.class) public void testGetClientFromIP() throws XMLClientNotFound{ ... assertEquals(c, sax.getClientFromIP("101.0.2.01")); } And the method, getClientFromIP is here:
public Client getClientFromIP(String ip) throws XMLClientNotFound { ... throw new XMLClientNotFound(); } And my exception:
public class XMLClientNotFound extends Exception{ }