Skip to content

Commit

Permalink
Add todo items for junit tests in 'RequestReportJobTest'
Browse files Browse the repository at this point in the history
  • Loading branch information
doulikecookiedough committed Feb 4, 2025
1 parent 90c8da9 commit d7be0b6
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package edu.ucsb.nceas.mdqengine.scheduler;

import edu.ucsb.nceas.mdqengine.MDQconfig;
import org.dataone.client.v2.impl.MultipartMNode;
import org.dataone.hashstore.HashStore;
import org.dataone.hashstore.HashStoreFactory;

Expand All @@ -13,15 +12,12 @@
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.security.NoSuchAlgorithmException;
import java.util.Iterator;
import java.util.Map;
import java.lang.reflect.Field;
import java.util.Properties;

import org.dataone.service.exceptions.NotAuthorized;
import org.dataone.service.types.v1.Identifier;
import org.dataone.service.types.v1.Session;
import org.dataone.service.types.v2.SystemMetadata;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
Expand All @@ -38,9 +34,7 @@
import static org.junit.jupiter.api.Assertions.fail;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.mockStatic;
import static org.mockito.Mockito.when;

/**
* Test class for RequestReportJob
Expand Down Expand Up @@ -157,6 +151,8 @@ public static void overrideConfigFilePathInMDQConfig(String fullPathToMetadigPro

// Junit Tests

// TODO: Add junit test for 'submitReportRequest'

/**
* Confirm that a sysmeta object is returned. No exception should be thrown.
*/
Expand Down Expand Up @@ -202,6 +198,8 @@ public void testGetObjectFromHashStore() throws Exception {
assertInstanceOf(InputStream.class, objectIS, "This should be an InputStream");
}

// TODO: Review junit tests related to testGetObjectFromHashStore

/**
* Confirm that no exception bubbles up when a hashstore is null, and the MN and CN API
* throws an exception when retrieving a data object (ex. eml metadata doc)
Expand Down

0 comments on commit d7be0b6

Please sign in to comment.