@Test public void verifyExampleNotFoundTellsWhereWeLooked() { expectedException.expect(RuntimeException.class); expectedException.expectMessage("Could not find nonexistent example.xml in "); PipeResourceLocator locator = new PipeResourceLocator(); locator.getExample("nonexistent example"); }
public URL getExample(String example) { return getResource(EXAMPLE_PATH,example,".xml"); }
PipeResourceLocator { public URL getExample(String example) { return getResource(EXAMPLE_PATH,example,".xml"); } }
PipeResourceLocator { public URL getExample(String example) { return getResource(EXAMPLE_PATH,example,".xml"); }  }
PipeResourceLocator { public URL getExample(String example) { return getResource(EXAMPLE_PATH,example,".xml"); }  URL getImage(String image); URL getExample(String example); URL getExamplePath(); URL getImagePath(); }
PipeResourceLocator { public URL getExample(String example) { return getResource(EXAMPLE_PATH,example,".xml"); }  URL getImage(String image); URL getExample(String example); URL getExamplePath(); URL getImagePath();  }