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