@Test(expectedExceptions = LookupException.class) public void simple500() throws LookupException { MetadataFetcher fetcher = new ApacheFetcher(); fetcher.fetch(URI.create("http://httpstat.us/500")); }
@Test(expectedExceptions = LookupException.class) public void simpleNullPointer() throws LookupException { MetadataFetcher fetcher = new ApacheFetcher(); fetcher.fetch(null); }
@Test(expectedExceptions = LookupException.class) public void simpleTimeout() throws LookupException { MetadataFetcher fetcher = new ApacheFetcher(); fetcher.fetch(URI.create("http://invalid.example.com/")); }