53 Commits

Author SHA1 Message Date
Rafal
d1b6ea4aac further cleanup 2025-06-02 09:52:12 +02:00
Rafal
b7dbcd8126 cleanup 2025-06-02 09:49:33 +02:00
Filip SW
a0d8a34ddb added back lost method and test 2025-05-29 17:22:59 +02:00
Filip SW
55f74d393e fixed tests 2025-05-29 16:59:28 +02:00
Filip SW
cac3c284ad fixed typo 2025-05-29 16:53:05 +02:00
Filip SW
27a7476937 removed unused test 2025-05-29 16:50:07 +02:00
Filip SW
ca75b244e1 updated the tests to expect 0 2025-05-29 16:47:39 +02:00
Filip SW
77a61e7fd8 Changed teamId to return 0 instead of null 2025-05-29 16:27:48 +02:00
Filip SW
0a5f6f5b58 removed comment 2025-05-28 13:25:59 +02:00
Filip SW
8c83afbf5f Refactor: Add exception handling and remove if-checks
- Added custom exceptions (UserBusinessException, ValidationException, UnauthorizedException)
- Added GlobalExceptionHandler for consistent error responses
- Refactored UserService to throw exceptions instead of returning booleans
- Updated UserController to use consistent ResponseEntity returns
- Improved error handling with proper HTTP status codes
2025-05-28 13:21:14 +02:00
pompo96
61a8d92c36 fixed tests with no adminkey check 2025-05-27 12:11:06 +02:00
pompo96
2d7f2a9565 Removed admin key check 2025-05-27 10:48:06 +02:00
pompo96
2caed66c8b Changed db to rafal 2025-05-26 14:49:39 +02:00
Filip SW
631808e7d5 tests 2025-05-26 11:34:19 +02:00
Filip SW
064f80587b changed back 2025-05-26 10:49:43 +02:00
Filip SW
1098dcef2a test 2025-05-26 10:45:54 +02:00
Filip SW
93a0e2399b changed test for new method 2025-05-26 10:31:07 +02:00
Filip SW
bf962e87bd Adding back the old method to find cause of failed test 2025-05-26 10:21:38 +02:00
Filip SW
c13cb00867 Merge branch 'main' of gitea.dsv.su.se:PVT15-grupp10/UserMS 2025-05-26 10:14:29 +02:00
Filip SW
3570e3afd3 Updated edit picture method 2025-05-26 10:10:46 +02:00
pompo96
49537b9545 Swagger for api docs generation 2025-05-24 19:19:11 +02:00
7fb2253336 Update src/main/resources/application.properties
Updated db password
2025-05-24 19:02:37 +02:00
b20bd85aa2 Merge pull request 'unit-tests' (#1) from unit-tests into main
Reviewed-on: #1
2025-05-23 12:03:03 +02:00
Rafal
72e9b3c523 added comments to each test 2025-05-22 22:50:23 +02:00
Rafal
92bdfeba69 updated tests to fit established paths 2025-05-22 22:37:08 +02:00
Rafal
c3aa567377 copied over tests from other classes - not adjusted yet 2025-05-22 22:32:36 +02:00
Rafal
9f56d61848 added a controller test file 2025-05-22 22:23:00 +02:00
Rafal
d25ea1215d uncommented contextLoads 2025-05-22 22:22:09 +02:00
Filip SW
ec314e31ca new fix 2025-05-21 03:55:27 +02:00
Filip SW
006e1c26d1 updated method 2025-05-21 03:15:10 +02:00
Filip SW
35afd7db86 method to reset id 2025-05-21 02:51:23 +02:00
Filip SW
832311f0d8 improved logic 2025-05-21 02:03:51 +02:00
Filip SW
59ada334bf get metod för profil 2025-05-20 11:59:43 +02:00
Filip SW
232872162d added back null check 2025-05-20 11:26:02 +02:00
Filip SW
d55dcd51af comment 2025-05-20 11:23:33 +02:00
Filip SW
bfcb326db0 fixed a bad null check 2025-05-20 11:00:29 +02:00
Filip SW
f0f533d263 Made it so teamId can be null 2025-05-20 10:59:45 +02:00
pompo96
0d98536139 Added method to fetch a users team 2025-05-15 23:32:50 +02:00
pompo96
36113b4ea7 Json instead of arguments for joining team 2025-05-15 21:28:32 +02:00
pompo96
e3696bf15a SetUserTeam logic 2025-05-15 21:09:36 +02:00
pompo96
8d103b1026 Changes by Filip SW 2025-05-15 17:22:27 +02:00
pompo96
476a1cc9d4 SetUserTeam logic 2025-05-15 17:22:13 +02:00
pompo96
acde2d0ca2 getRole method for testing 2025-05-14 15:05:41 +02:00
pompo96
89c0244613 Small endpoint paramenter change 2025-05-14 13:41:53 +02:00
pompo96
707b2c7be5 Updated dependencies 2025-05-14 13:15:50 +02:00
pompo96
fe74078139 Bunch of functionality 2025-05-14 12:49:43 +02:00
pompo96
e052fc5a7c Bunch of functionality 2025-05-14 12:32:34 +02:00
pompo96
eb2586a140 Bunch of functionality 2025-05-14 12:27:28 +02:00
Filip SW
c4ff5ea1bb Change @Mappings 2025-05-07 10:16:37 +02:00
Filip SW
0d4f9a9c93 DB 2025-05-05 13:39:02 +02:00