@Test public void testRetrievalOfStaticJavascript() throws Exception { getResource("script.js"); assertResourceContains("function"); }
public URL getResource(String path) { URL url = null; String internalPath = substringAfter(path, "/" + getLabel()); if (startsWith(internalPath, "/static/")) { url = getClass().getResource("/META-INF/consoleplugin/modelstatistics" + internalPath); } return url; }
ModelStatisticsConsolePlugin extends AbstractWebConsolePlugin { public URL getResource(String path) { URL url = null; String internalPath = substringAfter(path, "/" + getLabel()); if (startsWith(internalPath, "/static/")) { url = getClass().getResource("/META-INF/consoleplugin/modelstatistics" + internalPath); } return url; } }
ModelStatisticsConsolePlugin extends AbstractWebConsolePlugin { public URL getResource(String path) { URL url = null; String internalPath = substringAfter(path, "/" + getLabel()); if (startsWith(internalPath, "/static/")) { url = getClass().getResource("/META-INF/consoleplugin/modelstatistics" + internalPath); } return url; }  }
ModelStatisticsConsolePlugin extends AbstractWebConsolePlugin { public URL getResource(String path) { URL url = null; String internalPath = substringAfter(path, "/" + getLabel()); if (startsWith(internalPath, "/static/")) { url = getClass().getResource("/META-INF/consoleplugin/modelstatistics" + internalPath); } return url; }  @SuppressWarnings("unused") String getCategory(); @Override String getLabel(); @Override String getTitle(); URL getResource(String path); }
ModelStatisticsConsolePlugin extends AbstractWebConsolePlugin { public URL getResource(String path) { URL url = null; String internalPath = substringAfter(path, "/" + getLabel()); if (startsWith(internalPath, "/static/")) { url = getClass().getResource("/META-INF/consoleplugin/modelstatistics" + internalPath); } return url; }  @SuppressWarnings("unused") String getCategory(); @Override String getLabel(); @Override String getTitle(); URL getResource(String path);  }