This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 22ad04c4 authored by Michael Breu's avatar Michael Breu
Browse files

Adding trivial tests

parent a6d62327
Branches
1 merge request!120Bringing monitoring to production
package at.ac.uibk.gitsearch.web.rest.errors;
import org.junit.Assert;
import org.junit.jupiter.api.Test;
public class TrivialExceptionTest {
@Test
public void testInvalidPasswordException() {
InvalidPasswordException ex = new InvalidPasswordException();
Assert.assertEquals("Incorrect password", ex.getMessage());
}
@Test
public void testBadRequestAlertException() {
BadRequestAlertException ex = new BadRequestAlertException("defaultMessage", "entityName", "errorKey");
Assert.assertEquals("entityName", ex.getEntityName());
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment