Skip to content

Commit f46275f

Browse files
committed
test fix
1 parent 5a74bd6 commit f46275f

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

dsf-fhir/dsf-fhir-server/src/test/java/dev/dsf/fhir/authentication/IdentityProviderTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,6 @@ public void testGetPractitionerIdentityByOpenIdCredentialsUnknownPractitioner()
449449
"groups", new String[] { TOKEN_GROUP }));
450450
when(credentials.getUserId()).thenReturn("user-id");
451451
when(organizationProvider.getLocalOrganization()).thenReturn(Optional.of(LOCAL_ORGANIZATION));
452-
when(endpointProvider.getLocalEndpoint()).thenReturn(Optional.of(LOCAL_ENDPOINT));
453452

454453
Identity i = provider.getIdentity(credentials);
455454
assertNull(i);
@@ -464,7 +463,6 @@ public void testGetPractitionerIdentityByOpenIdCredentialsUnknownPractitioner()
464463
verify(credentials).getUserId();
465464

466465
verify(organizationProvider).getLocalOrganization();
467-
verify(endpointProvider).getLocalEndpoint();
468466
}
469467

470468
@Test
@@ -481,12 +479,10 @@ public void testGetPractitionerIdentityByOpenIdCredentialsUnknownLocalOrganizati
481479
Map.of("resource_access", Map.of(TOKEN_ROLE2_CLIENT, Map.of("roles", new String[] { TOKEN_ROLE2 })),
482480
"groups", new String[] { TOKEN_GROUP }));
483481
when(organizationProvider.getLocalOrganization()).thenReturn(Optional.empty());
484-
when(endpointProvider.getLocalEndpoint()).thenReturn(Optional.empty());
485482

486483
Identity i = provider.getIdentity(credentials);
487484
assertNull(i);
488485

489486
verify(organizationProvider).getLocalOrganization();
490-
verify(endpointProvider).getLocalEndpoint();
491487
}
492488
}

0 commit comments

Comments
 (0)