This is the codeAbility Sharing Platform! Learn more about the
codeAbility Sharing Platform
.
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
codeAbility Sharing Platform
Manage
Activity
Members
Labels
Plan
Issues
43
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
development
sharing
codeAbility Sharing Platform
Commits
22ad04c4
Commit
22ad04c4
authored
2 years ago
by
Michael Breu
Browse files
Options
Downloads
Patches
Plain Diff
Adding trivial tests
parent
a6d62327
Branches
Branches containing commit
1 merge request
!120
Bringing monitoring to production
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/test/java/at/ac/uibk/gitsearch/web/rest/errors/TrivialExceptionTest.java
+19
-0
19 additions, 0 deletions
.../uibk/gitsearch/web/rest/errors/TrivialExceptionTest.java
with
19 additions
and
0 deletions
src/test/java/at/ac/uibk/gitsearch/web/rest/errors/TrivialExceptionTest.java
0 → 100644
+
19
−
0
View file @
22ad04c4
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
());
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment