-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a failed test case to make the build of the CI fail
- Loading branch information
1 parent
0b5d1a0
commit 1f57067
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
11 changes: 9 additions & 2 deletions
11
authservice/src/test/java/com/authservice/auth/AuthserviceApplicationTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
package com.authservice.auth; | ||
|
||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.Test; | ||
import org.springframework.boot.test.context.SpringBootTest; | ||
|
||
import com.authservice.auth.model.User; | ||
|
||
@SpringBootTest | ||
class AuthserviceApplicationTests { | ||
|
||
@Test | ||
void contextLoads() { | ||
void setterAndGetterTests() { | ||
User user = new User(); | ||
user.setUsername("test"); | ||
user.setPassword("password"); | ||
System.out.println("Testing that the user name is valid"); | ||
Assertions.assertEquals(user.getUsername(), "test2"); | ||
} | ||
|
||
} |