WebjarsUriLocator implements UriLocator { public static String createUri(final String path) { notNull(path); return WroUtil.joinPath(PREFIX, path); }  static String createUri(final String path); @Override InputStream locate(final String uri); @Override boolean accept(final String uri); static final String ALIAS; }
@Test public void shouldCreateValidUri() { assertEquals("webjars:/path/to/resource.js", WebjarsUriLocator.createUri("/path/to/resource.js")); }
@Test(expected = NullPointerException.class) public void cannotCreateValidUriFromNullArgument() { WebjarUriLocator.createUri(null); }