Lines Matching defs:exists
51 public void testConnect(String urlString, boolean exists) throws Exception {
56 if (!exists) fail("IOException expected");
58 if (exists) fail("IOException not expected");
63 public void testInputStream(String urlString, boolean exists) throws Exception {
69 if (!exists) fail("IOException expected");
71 if (exists) fail("IOException not expected");
76 public void testContentLength(String urlString, boolean exists) throws Exception {
79 assertTrue((exists && len > 0) || (!exists && len == -1));
83 public void testGetContent(String urlString, boolean exists) throws Exception {
88 if (!exists) fail("IOException expected");
90 if (exists) fail("IOException not expected");