From 1f5706767b14d42c417e4ce1ca12918cae1e9462 Mon Sep 17 00:00:00 2001 From: Rehab Emad Eldeen Date: Fri, 12 Jan 2024 20:21:20 +0000 Subject: [PATCH] Add a failed test case to make the build of the CI fail --- .../authservice/auth/AuthserviceApplicationTests.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/authservice/src/test/java/com/authservice/auth/AuthserviceApplicationTests.java b/authservice/src/test/java/com/authservice/auth/AuthserviceApplicationTests.java index 2d14760..b870b36 100644 --- a/authservice/src/test/java/com/authservice/auth/AuthserviceApplicationTests.java +++ b/authservice/src/test/java/com/authservice/auth/AuthserviceApplicationTests.java @@ -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"); } - }