Skip to content

Commit

Permalink
fix interface name
Browse files Browse the repository at this point in the history
  • Loading branch information
taha.attari@smilecdr.com committed Oct 17, 2024
1 parent e6f63dd commit 29e74c2
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.opencds.cqf.fhir.api.Repository;
import org.opencds.cqf.fhir.utility.adapter.ILibraryAdapter;
import org.opencds.cqf.fhir.utility.adapter.LibraryAdapter;
import org.opencds.cqf.fhir.utility.adapter.r4.AdapterFactory;
import org.opencds.cqf.fhir.utility.repository.InMemoryFhirRepository;
import org.opencds.cqf.fhir.utility.visitor.DeleteVisitor;
Expand Down Expand Up @@ -44,7 +44,7 @@ void library_delete_test() {
String id = tsBundle.getEntry().get(0).getResponse().getLocation();
String version = "1.1.0";
Library library = repo.read(Library.class, new IdType(id)).copy();
ILibraryAdapter libraryAdapter = new AdapterFactory().createLibrary(library);
LibraryAdapter libraryAdapter = new AdapterFactory().createLibrary(library);
IKnowledgeArtifactVisitor deleteVisitor = new DeleteVisitor();
Parameters params = parameters(part("version", version));
Bundle returnedBundle = (Bundle) libraryAdapter.accept(deleteVisitor, repo, params);
Expand All @@ -63,7 +63,7 @@ void library_delete_active_test() {
String version = "1.0.0";
Library library = repo.read(Library.class, new IdType("Library/SpecificationLibrary"))
.copy();
ILibraryAdapter libraryAdapter = new AdapterFactory().createLibrary(library);
LibraryAdapter libraryAdapter = new AdapterFactory().createLibrary(library);
IKnowledgeArtifactVisitor deleteVisitor = new DeleteVisitor();
Parameters params = parameters(part("version", version));
libraryAdapter.accept(deleteVisitor, repo, params);
Expand All @@ -83,7 +83,7 @@ void library_delete_draft_test() {
String id = tsBundle.getEntry().get(0).getResponse().getLocation();
String version = "1.1.0-draft";
Library library = repo.read(Library.class, new IdType(id)).copy();
ILibraryAdapter libraryAdapter = new AdapterFactory().createLibrary(library);
LibraryAdapter libraryAdapter = new AdapterFactory().createLibrary(library);
IKnowledgeArtifactVisitor deleteVisitor = new DeleteVisitor();
Parameters params = parameters(part("version", version));
libraryAdapter.accept(deleteVisitor, repo, params);
Expand Down

0 comments on commit 29e74c2

Please sign in to comment.