@Test public void acceptDoesNotAllowsBadContentAfterQualityDefinition() { try { accept("text/turtle;q=0.000;bad data"); fail("accept should fail when bad content is found after the quality definition"); } catch (final IllegalArgumentException e) { assertThat(e.getMessage(),endsWith(" (;bad data)")); } }
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();   }