コード例 #1
0
 @Test(expected = IOException.class)
 public void testResourceTransport_notFound() throws IOException {
   ResourceTransport transport = new ResourceTransport();
   try (InputStream is = transport.open("/adx-rtb-dictionaries/doesnt.exist")) {}
 }
コード例 #2
0
 @Test
 public void testResourceTransport() throws IOException {
   ResourceTransport transport = new ResourceTransport();
   try (InputStream is = transport.open("/adx-rtb-dictionaries/countries.txt")) {}
 }