@Test public void acceptDoesNotAllowsMultipleParametersAfterQualityDefinition() { try { accept("text/turtle;q=0.000;param=value;ext=value"); fail("accept should fail when multiple parameters are found after quality definition"); } catch (final IllegalArgumentException e) { assertThat(e.getMessage(),equalTo("Invalid content after extension parameter [;ext=value] (;param=value;ext=value)")); } }
static Weighted<MediaType> accept(final String header) { return Weighted.fromString(header, new MediaTypeParser()); }
ContentNegotiationUtils { static Weighted<MediaType> accept(final String header) { return Weighted.fromString(header, new MediaTypeParser()); } }
ContentNegotiationUtils { static Weighted<MediaType> accept(final String header) { return Weighted.fromString(header, new MediaTypeParser()); } private  ContentNegotiationUtils(); }
ContentNegotiationUtils { static Weighted<MediaType> accept(final String header) { return Weighted.fromString(header, new MediaTypeParser()); } private  ContentNegotiationUtils();  }
ContentNegotiationUtils { static Weighted<MediaType> accept(final String header) { return Weighted.fromString(header, new MediaTypeParser()); } private  ContentNegotiationUtils();   }