Skip to content

Commit

Permalink
update test with new function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanetteclark committed Jul 10, 2024
1 parent dacccf8 commit 45a4135
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/java/edu/ucsb/nceas/mdqengine/MDQEngineTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import org.apache.commons.configuration2.ex.ConfigurationException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.dataone.service.types.v1.NodeReference;
import org.dataone.service.types.v2.SystemMetadata;
import org.junit.Before;
import org.junit.Ignore;
Expand Down Expand Up @@ -109,8 +110,10 @@ public void testRunSuiteForPackage() throws MetadigException, IOException, Confi
@Test
public void testFindDataObjects() throws Exception {
MDQEngine mdqe = new MDQEngine();
String nodeId = "urn:node:ARCTIC";
ArrayList<String> objs = mdqe.findDataObjects(nodeId, "doi:10.18739/A26M33558");
NodeReference nodeId = new NodeReference();
nodeId.setValue("urn:node:ARCTIC");

ArrayList<String> objs = mdqe.findDataPids(nodeId, "doi:10.18739/A26M33558");

ArrayList<String> expected = new ArrayList<>(Arrays.asList(
"urn:uuid:d1773868-1e6e-4a42-b21e-4ea744b1c1ae",
Expand Down

0 comments on commit 45a4135

Please sign in to comment.