Skip to content

Commit

Permalink
Add a failed test case to make the build of the CI fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Rehab-Emad committed Jan 12, 2024
1 parent 0b5d1a0 commit 1f57067
Showing 1 changed file with 9 additions and 2 deletions.
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");
}

}

0 comments on commit 1f57067

Please sign in to comment.