Example #1
0
 @Test(expected = OrekitException.class)
 public void ioException() throws OrekitException {
   try {
     new NetworkCrawler(url("regular-data/UTC-TAI.history"))
         .feed(Pattern.compile(".*"), new IOExceptionLoader());
   } catch (OrekitException oe) {
     // expected behavior
     Assert.assertNotNull(oe.getCause());
     Assert.assertEquals(IOException.class, oe.getCause().getClass());
     Assert.assertEquals("dummy error", oe.getMessage());
     throw oe;
   }
 }