@Test public void failsForWrongWildcardType() { try { sut.checkType("*bad"); fail("Should fail type check if bad wildcard type is defined"); } catch (IllegalArgumentException e) { assertThat(e.getMessage(),equalTo("Invalid character '*' in type '*bad' at 0")); } }
@Override public void checkType(final String type) { validateLength(type,"Type"); validateFirstChar(type,"type"); validateOtherChars(type,"type"); }
RFC6838MediaRangeValidator implements MediaRangeValidator { @Override public void checkType(final String type) { validateLength(type,"Type"); validateFirstChar(type,"type"); validateOtherChars(type,"type"); } }
RFC6838MediaRangeValidator implements MediaRangeValidator { @Override public void checkType(final String type) { validateLength(type,"Type"); validateFirstChar(type,"type"); validateOtherChars(type,"type"); } RFC6838MediaRangeValidator(); }
RFC6838MediaRangeValidator implements MediaRangeValidator { @Override public void checkType(final String type) { validateLength(type,"Type"); validateFirstChar(type,"type"); validateOtherChars(type,"type"); } RFC6838MediaRangeValidator(); @Override void checkType(final String type); @Override void checkSubType(final String subType); @Override void checkSuffix(final String suffix); }
RFC6838MediaRangeValidator implements MediaRangeValidator { @Override public void checkType(final String type) { validateLength(type,"Type"); validateFirstChar(type,"type"); validateOtherChars(type,"type"); } RFC6838MediaRangeValidator(); @Override void checkType(final String type); @Override void checkSubType(final String subType); @Override void checkSuffix(final String suffix);  }