ServletContextUriLocator extends WildcardUriLocatorSupport { public ServletContextUriLocator setLocatorStrategy(final LocatorStrategy locatorStrategy) { notNull(locatorStrategy); this.locatorStrategy = locatorStrategy; return this; }  ServletContextUriLocator setLocatorStrategy(final LocatorStrategy locatorStrategy); boolean accept(final String uri); static boolean isValid(final String uri); static boolean isProtectedResource(final String uri); InputStream locate(final String uri); LocatorStrategy getLocatorStrategy(); @Override String toString(); static final String ALIAS; static final String ALIAS_DISPATCHER_FIRST; static final String ALIAS_SERVLET_CONTEXT_FIRST; static final String ALIAS_SERVLET_CONTEXT_ONLY; static final String PREFIX; }
@Test(expected = NullPointerException.class) public void cannotSetNullLocatorStrategy() { victim.setLocatorStrategy(null); }