@Test public void testGetSingleSource() throws IOException { source.init(); try { InputStore store = source.getSingleSource(); System.out.println( "Image " + store.getName() + " (" + store.getSourceImage().toString() + ")"); } finally { source.close(); } }
@Test public void testInitAndDone() { source.init(); try { source.init(); fail("No IllegalStateException!"); } catch (IllegalStateException ise) { System.out.println("Received expected exception: " + ise); } source.close(); try { source.close(); fail("No IllegalStateException!"); } catch (IllegalStateException ise) { System.out.println("Received expected exception: " + ise); } }