@Test public void singleWildcardMediaRange() { final String any = ANY.getMediaType(); final AcceptHeader acceptHeader = new AcceptHeader(any); assertEquals(1, acceptHeader.getAccepts().size()); assertEquals(any, acceptHeader.getAccepts().get(0).getMediaRange()); }
public List<Accept> getAccepts() { return accepts; }
AcceptHeader { public List<Accept> getAccepts() { return accepts; } }
AcceptHeader { public List<Accept> getAccepts() { return accepts; } AcceptHeader(final String headerValue); }
AcceptHeader { public List<Accept> getAccepts() { return accepts; } AcceptHeader(final String headerValue); List<Accept> getAccepts(); }
AcceptHeader { public List<Accept> getAccepts() { return accepts; } AcceptHeader(final String headerValue); List<Accept> getAccepts();  }