@@ -0,0 +1,1343 @@
+package at.ac.tuwien.inso.validator_tests;%0A%0A%0Aimport org.junit.Test;%0A%0Aimport at.ac.tuwien.inso.exception.ValidationException;%0Aimport at.ac.tuwien.inso.service.validator.UisUserValidator;%0A%0A%0Apublic class UisUserValidatorTests %7B%0A%0A    private final UisUserValidator validator = new UisUserValidator();%0A%0A    @Test%0A    public void testEmailValidator() %7B%0A        validator.validateEmail(%22uis@tuwien.ac.at%22);%0A    %7D%0A%0A    @Test (expected = ValidationException.class)%0A    public void testEmailInvalid() %7B%0A        validator.validateEmail(%22uis%22);%0A    %7D%0A%0A    /**%0A     * Local email (for intranets) should not be allowed%0A     */%0A    @Test (expected = ValidationException.class)%0A    public void testEmailLocal() %7B%0A        validator.validateEmail(%22uis@tuwien%22);%0A    %7D%0A%0A    @Test (expected = ValidationException.class)%0A    public void testEmailNoLocalPart() %7B%0A        validator.validateEmail(%22@tuwien.at%22);%0A    %7D%0A%0A    @Test (expected = ValidationException.class)%0A    public void testEmailValidatorNull() %7B%0A        validator.validateEmail(null);%0A    %7D%0A%0A    @Test (expected = ValidationException.class)%0A    public void testEmailValidatorEmpty() %7B%0A        validator.validateEmail(%22%22);%0A    %7D%0A%0A    /**%0A     * German umlauts are valid in emails%0A     */%0A    @Test%0A    public void testEmailValidatorUmlauts() %7B%0A        validator.validateEmail(%22bj%C3%B6rn@t%C3%BCdl%C3%BC.at%22);%0A    %7D%0A%7D%0A

Add tests for email validation