From 6252c3d686204f0ea30fda067d29b20c0cc1575c Mon Sep 17 00:00:00 2001 From: Daniel Zdravkovic <3012893@stud.hs-mannheim.de> Date: Tue, 11 Jun 2024 11:05:48 +0200 Subject: [PATCH] sign_in_user method another minor decoding fix and tests successful --- src/test/java/de/hs_mannheim/domain/SystemTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/de/hs_mannheim/domain/SystemTest.java b/src/test/java/de/hs_mannheim/domain/SystemTest.java index 992760b..adfac1d 100644 --- a/src/test/java/de/hs_mannheim/domain/SystemTest.java +++ b/src/test/java/de/hs_mannheim/domain/SystemTest.java @@ -113,4 +113,12 @@ public class SystemTest { assertEquals(true, current_system.get_all_user().get(1).getPassword().equals("MTIzRXNlbA==")); } + @Test + public void sign_in_user() { + + assertEquals(true, current_system.sign_in_user("Daniel", "1401Daniel")); + assertEquals("Daniel",current_system.getDetails()[0]); + + } + } \ No newline at end of file