@Test public void verifyGetsExample() { PipeResourceLocator locator = new PipeResourceLocator(); URL url = locator.getExample("ClassicGSPN"); assertTrue(url.getPath().endsWith("/extras/examples/ClassicGSPN.xml")); url = locator.getExample("Courier Protocol"); assertTrue(url.getPath().endsWith("/extras/examples/Courier%20Protocol.xml")); }
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();  }