@Test public void qualityParameterValuesCannotBeGreaterThanOne() { try { Weighted.fromString("value;q=2.0"); fail("Should fail when quality value is greater than 1"); } catch (final IllegalArgumentException e) { assertThat(e.getMessage(),startsWith("Quality definition failure found: invalid weight value '2.0'")); } }
static Weighted<String> fromString(String candidate) { return fromString(candidate,new StringParser()); }
Weighted { static Weighted<String> fromString(String candidate) { return fromString(candidate,new StringParser()); } }
Weighted { static Weighted<String> fromString(String candidate) { return fromString(candidate,new StringParser()); } private  Weighted(final Double weight, final T content); }
Weighted { static Weighted<String> fromString(String candidate) { return fromString(candidate,new StringParser()); } private  Weighted(final Double weight, final T content); @Override String toString(); }
Weighted { static Weighted<String> fromString(String candidate) { return fromString(candidate,new StringParser()); } private  Weighted(final Double weight, final T content); @Override String toString();  }