From 88b6247cf4149c1dca2c97a699a34762891053d8 Mon Sep 17 00:00:00 2001 From: matthew-a-dunlap Date: Wed, 25 Jul 2018 15:38:38 -0400 Subject: [PATCH] Disable prov unit tests, they are very slow #4378 Running these on each build wastes a lot of time for developers and this code is pretty isolated --- .../edu/harvard/iq/dataverse/ProvUtilFragmentTest.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/test/java/edu/harvard/iq/dataverse/ProvUtilFragmentTest.java b/src/test/java/edu/harvard/iq/dataverse/ProvUtilFragmentTest.java index 257350fc1a5..cb8c83e4940 100644 --- a/src/test/java/edu/harvard/iq/dataverse/ProvUtilFragmentTest.java +++ b/src/test/java/edu/harvard/iq/dataverse/ProvUtilFragmentTest.java @@ -14,21 +14,23 @@ import java.util.logging.Logger; import static org.junit.Assert.*; import org.junit.Before; +import org.junit.Ignore; import org.junit.Test; /** * * @author madunlap */ +@Ignore public class ProvUtilFragmentTest { - private ProvUtilFragmentBean provUtilBean; + private ProvInvestigator provUtilBean; JsonParser jsonParser; private static final Logger logger = Logger.getLogger(ProvUtilFragmentTest.class.getCanonicalName()); @Before public void setUp() { - provUtilBean = new ProvUtilFragmentBean(); + provUtilBean = ProvInvestigator.getInstance(); jsonParser = new JsonParser(); } @@ -120,6 +122,7 @@ public void testProvNamesNotInsideEntity() throws IOException { //MAD: write a simple entity test as well, also ensure logging works after getting a real tostring together //also write a test of parsing different cases, we don't want to catch "fakename" but we do want to catch "rdt:name" and "name" + @Test public void testProvNameJsonParserEmptyEntities() throws IOException { String jsonString = "{\n" + @@ -158,6 +161,7 @@ public void testProvNameJsonParserEmptyEntities() throws IOException { //Note: this test has entity tags in multiple places, all with unique names //Only one entity is added to our list per unique name. + @Test public void testProvJsonWithEntitiesInMultiplePlaces() throws IOException { String jsonString = "{\n" + @@ -268,6 +272,7 @@ public void testProvJsonWithEntitiesInMultiplePlacesWithSameNames() throws IOExc assertTrue(entities.size() == 3); //ex:report2 & ex:report1 are repeated } + @Ignore @Test public void testProvLongJsonWithEntities() throws IOException { String jsonString = "{\n" +