@Test public void testAdd() throws MimeTypeException { try { patterns.add(null, text); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { } try { patterns.add("", null); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { } try { patterns.add(null, null); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException e) { } }
public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } Patterns(MediaTypeRegistry registry); }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } Patterns(MediaTypeRegistry registry); void add(String pattern, MimeType type); void add(String pattern, boolean isJavaRegex, MimeType type); MimeType matches(String name); }
Patterns implements Serializable { public void add(String pattern, MimeType type) throws MimeTypeException { this.add(pattern, false, type); } Patterns(MediaTypeRegistry registry); void add(String pattern, MimeType type); void add(String pattern, boolean isJavaRegex, MimeType type); MimeType matches(String name);  }