@Test(expected=NullPointerException.class) public void testRegisterNull() throws Exception { final LookupRegistry<Object> matcher = new UriPatternMatcher<>(); matcher.register(null, null); }
@Override public synchronized void register(final String pattern, final T obj) { Args.notNull(pattern, "URI request pattern"); this.map.put(pattern, obj); }
UriPatternMatcher implements LookupRegistry<T> { @Override public synchronized void register(final String pattern, final T obj) { Args.notNull(pattern, "URI request pattern"); this.map.put(pattern, obj); } }
UriPatternMatcher implements LookupRegistry<T> { @Override public synchronized void register(final String pattern, final T obj) { Args.notNull(pattern, "URI request pattern"); this.map.put(pattern, obj); } UriPatternMatcher(); }
UriPatternMatcher implements LookupRegistry<T> { @Override public synchronized void register(final String pattern, final T obj) { Args.notNull(pattern, "URI request pattern"); this.map.put(pattern, obj); } UriPatternMatcher(); synchronized Set<Entry<String, T>> entrySet(); @Override synchronized void register(final String pattern, final T obj); @Override synchronized void unregister(final String pattern); @Override synchronized T lookup(final String path); @Override String toString(); }
UriPatternMatcher implements LookupRegistry<T> { @Override public synchronized void register(final String pattern, final T obj) { Args.notNull(pattern, "URI request pattern"); this.map.put(pattern, obj); } UriPatternMatcher(); synchronized Set<Entry<String, T>> entrySet(); @Override synchronized void register(final String pattern, final T obj); @Override synchronized void unregister(final String pattern); @Override synchronized T lookup(final String path); @Override String toString();  }