@Test public void multipleMediaRangesWith_withQualityFactors() { final Accept appXml = new Accept(APPLICATION_XML); final Accept appXhtml = new Accept(APPLICATION_XHTML_XML, 0.9f); final Accept appPdf = new Accept(APPLICATION_PDF, 0.4f); final String headerValue = appXml.toString() + "," + appXhtml.toString() + "," + appPdf.toString(); final AcceptHeader acceptHeader = new AcceptHeader(headerValue); assertEquals(3, acceptHeader.getAccepts().size()); assertEquals(appXml, acceptHeader.getAccepts().get(0)); assertEquals(appXhtml, acceptHeader.getAccepts().get(1)); assertEquals(appPdf, acceptHeader.getAccepts().get(2)); }
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();  }