@Test(expected=IllegalArgumentException.class) public void testBasicPathInvalidInput2() throws Exception { AbstractCookieSpec cookiespec = new DummyCookieSpec(); cookiespec.registerAttribHandler("whatever", null); }
public void registerAttribHandler( final String name, final CookieAttributeHandler handler) { if (name == null) { throw new IllegalArgumentException("Attribute name may not be null"); } if (handler == null) { throw new IllegalArgumentException("Attribute handler may not be null"); } this.attribHandlerMap.put(name, handler); }
AbstractCookieSpec implements CookieSpec { public void registerAttribHandler( final String name, final CookieAttributeHandler handler) { if (name == null) { throw new IllegalArgumentException("Attribute name may not be null"); } if (handler == null) { throw new IllegalArgumentException("Attribute handler may not be null"); } this.attribHandlerMap.put(name, handler); } }
AbstractCookieSpec implements CookieSpec { public void registerAttribHandler( final String name, final CookieAttributeHandler handler) { if (name == null) { throw new IllegalArgumentException("Attribute name may not be null"); } if (handler == null) { throw new IllegalArgumentException("Attribute handler may not be null"); } this.attribHandlerMap.put(name, handler); } AbstractCookieSpec(); }
AbstractCookieSpec implements CookieSpec { public void registerAttribHandler( final String name, final CookieAttributeHandler handler) { if (name == null) { throw new IllegalArgumentException("Attribute name may not be null"); } if (handler == null) { throw new IllegalArgumentException("Attribute handler may not be null"); } this.attribHandlerMap.put(name, handler); } AbstractCookieSpec(); void registerAttribHandler(
            final String name, final CookieAttributeHandler handler); }
AbstractCookieSpec implements CookieSpec { public void registerAttribHandler( final String name, final CookieAttributeHandler handler) { if (name == null) { throw new IllegalArgumentException("Attribute name may not be null"); } if (handler == null) { throw new IllegalArgumentException("Attribute handler may not be null"); } this.attribHandlerMap.put(name, handler); } AbstractCookieSpec(); void registerAttribHandler(
            final String name, final CookieAttributeHandler handler);  }