@Test public void qualityParameterValuesRequireDotSeparator() { try { Weighted.fromString("value;q=1"); fail("Should fail when no dot separator is present"); } catch (final IllegalArgumentException e) { assertThat(e.getMessage(),startsWith("Quality definition failure found: invalid weight value '1'")); } }
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();  }