Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
taha.attari@smilecdr.com committed Dec 19, 2024
1 parent 2291b3f commit 33d9442
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import ca.uhn.fhir.context.FhirVersionEnum;
import ca.uhn.fhir.rest.server.exceptions.UnprocessableEntityException;
import java.util.Date;

import org.hl7.fhir.r4.model.Library;
import org.junit.jupiter.api.Test;

Expand All @@ -21,11 +20,12 @@ void testUnsupportedVersion() {
assertThrows(UnprocessableEntityException.class, () -> IAdapter.newDateType(version, date));
assertThrows(UnprocessableEntityException.class, () -> IAdapter.newDateTimeType(version, date));
}

@Test
void testResolvPath() {
var library = new Library();
library.setDate(new Date());
var adapter = IAdapterFactory.createAdapterForResource(library);
assertThrows(UnprocessableEntityException.class, () -> adapter.resolvePathString(library,"date"));
assertThrows(UnprocessableEntityException.class, () -> adapter.resolvePathString(library, "date"));
}
}

0 comments on commit 33d9442

Please sign in to comment.