@Test public void singleMediaRange() { final String appXml = "application/xml"; final AcceptHeader acceptHeader = new AcceptHeader(appXml); assertEquals(1, acceptHeader.getAccepts().size()); assertEquals(appXml, 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();  }