@Test public void isValid() { assertTrue(slugNameValidator.isValid("test")); assertFalse(slugNameValidator.isValid("tést")); assertFalse(slugNameValidator.isValid("test with âccents/and.special%characters")); assertTrue(slugNameValidator.isValid("test-with-accents-and-special-characters")); assertFalse(slugNameValidator.isValid("test---many-forbidden---")); assertFalse(slugNameValidator.isValid("-test-many-forbidden")); assertFalse(slugNameValidator.isValid("test-many-forbidden-")); assertTrue(slugNameValidator.isValid("test-many-forbidden")); assertTrue(slugNameValidator.isValid("1test-many-forbidden")); }
@Override public boolean isValid(String name) { return VALIDATION_PATTERN.matcher(name).matches(); }
SlugEntityNameValidation extends AbstractEntityNameValidation { @Override public boolean isValid(String name) { return VALIDATION_PATTERN.matcher(name).matches(); } }
SlugEntityNameValidation extends AbstractEntityNameValidation { @Override public boolean isValid(String name) { return VALIDATION_PATTERN.matcher(name).matches(); }  }
SlugEntityNameValidation extends AbstractEntityNameValidation { @Override public boolean isValid(String name) { return VALIDATION_PATTERN.matcher(name).matches(); }  @Override String transform(String name); @Override boolean isValid(String name); }
SlugEntityNameValidation extends AbstractEntityNameValidation { @Override public boolean isValid(String name) { return VALIDATION_PATTERN.matcher(name).matches(); }  @Override String transform(String name); @Override boolean isValid(String name);  }