Skip to content

Commit

Permalink
chore: self-review
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilczaja committed Dec 2, 2024
1 parent dc2a7c2 commit 35dc9a0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,7 @@ class FirstUserRegistrationTest {
useMockNow(now)

doNothing().whenever(keycloakService).sendInvitationEmail(any())
doNothing().whenever(keycloakService).createOrganization(any())
doNothing().whenever(keycloakService).joinOrganization(any(), any(), any())
whenever(keycloakService.getUserIdByEmail(any())).thenReturn(null)
whenever(keycloakService.createUser(
eq(request.userEmail), eq(request.userFirstName), eq(request.userLastName), eq(request.userPassword)
)).thenReturn(dummyDevUserUuid(0))
whenever(keycloakService.createKeycloakUserAndOrganization(
any(), eq(request.userEmail), eq(request.userFirstName), eq(request.userLastName), any(), eq(request.userPassword)
)).thenReturn(dummyDevUserUuid(0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,6 @@ class RegistrationApiServiceTest {
useMockNow(now)

doNothing().whenever(keycloakService).sendInvitationEmail(any())
doNothing().whenever(keycloakService).createOrganization(any())
doNothing().whenever(keycloakService).joinOrganization(any(), any(), any())
whenever(keycloakService.createUser(
eq(request.userEmail), eq(request.userFirstName), eq(request.userLastName), eq(request.userPassword)
)).thenReturn(dummyDevUserUuid(1))
whenever(keycloakService.createKeycloakUserAndOrganization(
any(), eq(request.userEmail), eq(request.userFirstName), eq(request.userLastName), any(), eq(request.userPassword)
)).thenReturn(dummyDevUserUuid(1))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,9 @@ class OrganizationInvitationApiServiceTest {
useMockNow(now)

whenever(organizationIdUtils.generateOrganizationId()).thenReturn(dummyDevOrganizationId(1))
whenever(keycloakService.createUser(
eq("[email protected]"),
eq("New"),
eq("User"),
isNull())).thenReturn(dummyDevUserUuid(1))
whenever(keycloakService.createKeycloakUserAndOrganization(
any(), eq("[email protected]"), eq("New"), eq("User"), any(), eq(null)
)).thenReturn(dummyDevUserUuid(1))
doNothing().whenever(keycloakService).createOrganization(eq(dummyDevOrganizationId(1)))
doNothing().whenever(keycloakService).joinOrganization(eq(dummyDevUserUuid(1)), eq(dummyDevOrganizationId(1)), any())

ScenarioData().apply {
user(0, 0)
Expand Down

0 comments on commit 35dc9a0

Please sign in to comment.