Skip to content

Commit

Permalink
format and sort
Browse files Browse the repository at this point in the history
  • Loading branch information
wetret committed Jan 26, 2024
1 parent 8bb76ea commit 3dd5820
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public void testUpdateOrganizationWithNewThumbprint() throws Exception
assertTrue(bundle.getEntry().get(0).getResource() instanceof Organization);

Organization org = (Organization) bundle.getEntryFirstRep().getResource();
List<Extension> thumbprints = org.getExtensionsByUrl(
"http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
List<Extension> thumbprints = org
.getExtensionsByUrl("http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
assertNotNull(thumbprints);
assertEquals(1, thumbprints.size());

Expand All @@ -151,8 +151,8 @@ public void testUpdateOrganizationWithExistingThumbprint() throws Exception
assertTrue(bundle1.getEntry().get(0).getResource() instanceof Organization);

Organization org1 = (Organization) bundle1.getEntryFirstRep().getResource();
List<Extension> thumbprints1 = org1.getExtensionsByUrl(
"http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
List<Extension> thumbprints1 = org1
.getExtensionsByUrl("http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
assertNotNull(thumbprints1);
assertEquals(1, thumbprints1.size());

Expand All @@ -171,8 +171,8 @@ public void testUpdateOrganizationWithExistingThumbprint() throws Exception
assertTrue(bundle2.getEntry().get(0).getResource() instanceof Organization);

Organization org2 = (Organization) bundle2.getEntryFirstRep().getResource();
List<Extension> thumbprints2 = org2.getExtensionsByUrl(
"http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
List<Extension> thumbprints2 = org2
.getExtensionsByUrl("http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
assertNotNull(thumbprints2);
assertEquals(1, thumbprints2.size());

Expand Down Expand Up @@ -218,15 +218,15 @@ public void testUpdateOrganizationAddNewThumbprint() throws Exception
assertTrue(bundle.getEntry().get(0).getResource() instanceof Organization);

Organization org = (Organization) bundle.getEntryFirstRep().getResource();
List<Extension> thumbprints = org.getExtensionsByUrl(
"http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
List<Extension> thumbprints = org
.getExtensionsByUrl("http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint");
assertNotNull(thumbprints);
assertEquals(1, thumbprints.size());

Extension oldThumbprint = thumbprints.get(0);
Extension newThumbprint = new Extension(
"http://dsf.dev/fhir/StructureDefinition/extension-certificate-thumbprint", new StringType(
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"));
"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"));

org.setExtension(List.of(newThumbprint, oldThumbprint));
getWebserviceClient().update(org);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ public void testCreateForbiddenLocalUserIllegalStatus() throws Exception
for (TaskStatus illegal : illegalCreateStates)
{
t.setStatus(illegal);
expectForbidden(() -> getWebserviceClient().create(t));;
expectForbidden(() -> getWebserviceClient().create(t));
;
}
}

Expand Down

0 comments on commit 3dd5820

Please sign in to comment.