diff --git a/src/test/java/org/kpmp/spatialViewerDataset/SpatialViewerExternalLinkIdTest.java b/src/test/java/org/kpmp/spatialViewerDataset/SpatialViewerExternalLinkIdTest.java new file mode 100644 index 0000000..88c9d72 --- /dev/null +++ b/src/test/java/org/kpmp/spatialViewerDataset/SpatialViewerExternalLinkIdTest.java @@ -0,0 +1,37 @@ +package org.kpmp.spatialViewerDataset; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; +public class SpatialViewerExternalLinkIdTest { + + private SpatialViewerExternalLinkId spatialViewerExternalLinkId; + @BeforeEach + public void setUp() throws Exception { + spatialViewerExternalLinkId = new SpatialViewerExternalLinkId(); + } + + @AfterEach + public void tearDown() throws Exception { + spatialViewerExternalLinkId = null; + } + + @Test + public void setDlFileId() { + spatialViewerExternalLinkId.setDlFileId("abc_123"); + assertEquals("abc_123", spatialViewerExternalLinkId.getDlFileId()); + } + + @Test + public void setRedcapId() { + spatialViewerExternalLinkId.setRedcapId("redcap_id"); + assertEquals("redcap_id", spatialViewerExternalLinkId.getRedcapId()); + } + + @Test + public void setExperimentalStrategy() { + spatialViewerExternalLinkId.setExperimentalStrategy("stuff"); + assertEquals("stuff", spatialViewerExternalLinkId.getExperimentalStrategy()); + } +} diff --git a/src/test/java/org/kpmp/spatialViewerDataset/SpatialViewerFileDatsetIdTest.java b/src/test/java/org/kpmp/spatialViewerDataset/SpatialViewerFileDatsetIdTest.java new file mode 100644 index 0000000..e2726ff --- /dev/null +++ b/src/test/java/org/kpmp/spatialViewerDataset/SpatialViewerFileDatsetIdTest.java @@ -0,0 +1,37 @@ +package org.kpmp.spatialViewerDataset; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; +public class SpatialViewerFileDatsetIdTest { + + private SpatialViewerFileDatasetId spatialViewerFileDatasetId; + @BeforeEach + public void setUp() throws Exception { + spatialViewerFileDatasetId = new SpatialViewerFileDatasetId(); + } + + @AfterEach + public void tearDown() throws Exception { + spatialViewerFileDatasetId = null; + } + + @Test + public void setDlFileId() { + spatialViewerFileDatasetId.setDlFileId("abc_123"); + assertEquals("abc_123", spatialViewerFileDatasetId.getDlFileId()); + } + + @Test + public void setRedcapId() { + spatialViewerFileDatasetId.setRedcapId("redcap_id"); + assertEquals("redcap_id", spatialViewerFileDatasetId.getRedcapId()); + } + + @Test + public void setExperimentalStrategy() { + spatialViewerFileDatasetId.setExperimentalStrategy("stuff"); + assertEquals("stuff", spatialViewerFileDatasetId.getExperimentalStrategy()); + } +}