From a8173b4bef81daa3326d164bbdb565de049f357f Mon Sep 17 00:00:00 2001 From: priesthj Date: Tue, 28 Jan 2025 19:37:22 -0500 Subject: [PATCH 01/20] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b2588bc51..09b20db6c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ My groupmembers are: -- XXXX +- Hunter - XXXX - XXXX - XXXX From 11a9f08390de5815a504ffe880027d655474fa76 Mon Sep 17 00:00:00 2001 From: ramseygc Date: Tue, 28 Jan 2025 19:42:23 -0500 Subject: [PATCH 02/20] Update README.md Just adding my name and an extra space for our 5th person --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 09b20db6c..00ee77102 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ My groupmembers are: - Hunter +- Griffin Ramsey - XXXX - XXXX - XXXX - ------------------ Fill in some information about your project under this ------------------ From 38854a5ce29e9bba454e6134b15157c5ed125530 Mon Sep 17 00:00:00 2001 From: Naimul naim <94945929+1997Naim@users.noreply.github.com> Date: Wed, 29 Jan 2025 00:00:58 -0500 Subject: [PATCH 03/20] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00ee77102..d271c27d8 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ My groupmembers are: - Hunter - Griffin Ramsey -- XXXX +- Naimul Naim - XXXX - XXXX From eeca254d5cbf485bfa1ed041d7c9de36c3d7a8dd Mon Sep 17 00:00:00 2001 From: Astro Date: Thu, 27 Mar 2025 17:17:50 -0400 Subject: [PATCH 04/20] add login system unit tests and test cases, as well as some rough drafts for the system itself --- Authentication.java | 40 ++++++++++++++++++++++++++++ Login_Test_Cases.xlsx | Bin 0 -> 14968 bytes UserService.java | 42 +++++++++++++++++++++++++++++ login.java | 60 ++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 142 insertions(+) create mode 100644 Authentication.java create mode 100644 Login_Test_Cases.xlsx create mode 100644 UserService.java create mode 100644 login.java diff --git a/Authentication.java b/Authentication.java new file mode 100644 index 000000000..4263e3494 --- /dev/null +++ b/Authentication.java @@ -0,0 +1,40 @@ +import static org.junit.Assert.*; +import org.junit.Before; +import org.junit.Test; + +public class Authentication { + + private UserService userService; + + @Before + public void setup() { + userService = new UserService(); + userService.register("alice", "Secret123"); + } + + @Test + public void testSuccessfulAuthentication() { + assertTrue(userService.authenticate("alice", "Secret123")); + } + + @Test + public void testAuthenticationWithInvalidUsername() { + assertFalse(userService.authenticate("bob", "Secret123")); + } + + @Test + public void testAuthenticationWithWrongPassword() { + assertFalse(userService.authenticate("alice", "WrongPass")); + } + + @Test + public void testAuthenticationWithEmptyFields() { + assertFalse(userService.authenticate("", "")); + } + + @Test + public void testAuthenticationAfterRegistration() { + userService.register("newuser", "NewPass456"); + assertTrue(userService.authenticate("newuser", "NewPass456")); + } +} diff --git a/Login_Test_Cases.xlsx b/Login_Test_Cases.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..3e1460c21e77cc90dd8c39cb3eede86894618f2b GIT binary patch literal 14968 zcmeHO^Lr)TvfeQ!wrwYqiEZ1qHL-1*6Wi9rHfLgEqKWO?%zWoO-#K&6{R{5xAG-H? zdez&zS68j7^;Ru8Nf1yJ05|{=000mI2qQ%}9Do3TNH72Z82|~aDQIisXl&!CtK?>9 z?4V8OYHdZ32MSD)0|0*S|NqDT;SuOp8nNkRKwF0W|UdZ3F{qG&LD*SNmAa5U($lO>1CC0GD&7e;Q!xIj}CQ&mJ?4KoJb>IG7;&3<*R=`wI@nWu{Hg;YYv{O#>EZY%b!zuQ{ z%?kx_FYUj;NLpm