Skip to content

Commit

Permalink
tests: Remove dependency to Jena in FileProjectManagerTests (#6557)
Browse files Browse the repository at this point in the history
  • Loading branch information
wetneb committed Apr 25, 2024
1 parent 7fd42ee commit b8ce339
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -41,15 +41,15 @@
import java.nio.file.Path;
import java.nio.file.Paths;

import com.fasterxml.jackson.databind.JsonNode;
import org.apache.commons.io.FileUtils;
import org.apache.jena.atlas.json.JSON;
import org.apache.jena.atlas.json.JsonObject;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

import com.google.refine.ProjectMetadata;
import com.google.refine.model.Project;
import com.google.refine.util.GetProjectIDException;
import com.google.refine.util.ParsingUtilities;
import com.google.refine.util.TestUtils;

public class FileProjectManagerTests {
Expand Down Expand Up @@ -121,8 +121,8 @@ public void deleteProjectAndSaveWorkspace() throws IOException {
manager.saveWorkspace();

InputStream inputStream = new FileInputStream(workspaceFile);
JsonObject json = JSON.parse(inputStream);
assertTrue(json.get("projectIDs").getAsArray().isEmpty(), "deleted project still in workspace.json");
JsonNode json = ParsingUtilities.mapper.readTree(inputStream);
assertTrue(json.get("projectIDs").isEmpty(), "deleted project still in workspace.json");
}

/**
Expand Down

0 comments on commit b8ce339

Please sign in to comment.