From 76aa1977ca98893e2c36d6bba9aec0dab8d3ad3c Mon Sep 17 00:00:00 2001
From: Piotr Gawron <piotr.gawron@uni.lu>
Date: Fri, 30 Jun 2017 14:10:26 +0200
Subject: [PATCH] unit test fixed (data in reactome changed)

---
 .../mapviewer/reactome/xml/GeneralTests.java  | 101 +++++++++---------
 1 file changed, 50 insertions(+), 51 deletions(-)

diff --git a/reactome/src/test/java/lcsb/mapviewer/reactome/xml/GeneralTests.java b/reactome/src/test/java/lcsb/mapviewer/reactome/xml/GeneralTests.java
index 8c20d2527e..8b1c3b3937 100644
--- a/reactome/src/test/java/lcsb/mapviewer/reactome/xml/GeneralTests.java
+++ b/reactome/src/test/java/lcsb/mapviewer/reactome/xml/GeneralTests.java
@@ -22,7 +22,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testFragmentInsertionModification() throws Exception{
+	public void testFragmentInsertionModification() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2318717);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -33,7 +33,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testFragmentDeletionModification() throws Exception{
+	public void testFragmentDeletionModification() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2063905);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -44,7 +44,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testInterChainCrosslinkedResidue() throws Exception{
+	public void testInterChainCrosslinkedResidue() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(4419898);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -55,7 +55,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testIntraChainCrosslinkedResidue() throws Exception{
+	public void testIntraChainCrosslinkedResidue() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(3777079);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -66,7 +66,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testGroupModifiedResidue() throws Exception{
+	public void testGroupModifiedResidue() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2396027);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -77,7 +77,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testModifiedResidue() throws Exception{
+	public void testModifiedResidue() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(140630);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -100,7 +100,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testEntityFunctionalStatus() throws Exception{
+	public void testEntityFunctionalStatus() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(3080617);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -111,7 +111,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testPathway() throws Exception{
+	public void testPathway() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(168276);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -122,7 +122,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testBlackBoxEvent() throws Exception{
+	public void testBlackBoxEvent() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2454113);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -133,7 +133,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testDepolymerisation() throws Exception{
+	public void testDepolymerisation() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(173642);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -144,7 +144,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testPolymerisation() throws Exception{
+	public void testPolymerisation() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(936986);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -155,7 +155,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testReaction() throws Exception{
+	public void testReaction() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(71593);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -166,7 +166,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testEvidenceType() throws Exception{
+	public void testEvidenceType() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(4546411);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -177,7 +177,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testCellType() throws Exception{
+	public void testCellType() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2473605);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -188,7 +188,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testDisease() throws Exception{
+	public void testDisease() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(1625206);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -199,7 +199,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testPsiMod() throws Exception{
+	public void testPsiMod() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(448185);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -210,7 +210,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testSequenceOntology() throws Exception{
+	public void testSequenceOntology() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2318494);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -221,7 +221,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testEntityCompartment() throws Exception{
+	public void testEntityCompartment() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(1470028);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -244,7 +244,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 
 	@Test
 	@Ignore("In reactome there is no object of this type")
-	public void testPathwayCoordinates() throws Exception{
+	public void testPathwayCoordinates() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(5477003);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -255,9 +255,9 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testFigure() throws Exception{
+	public void testFigure() throws Exception {
 		try {
-			ReactomeDatabaseObject object = rc.getFullObjectForDbId(157815 );
+			ReactomeDatabaseObject object = rc.getFullObjectForDbId(157815);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -266,7 +266,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testFrontPage() throws Exception{
+	public void testFrontPage() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(4545014);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -277,7 +277,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testFunctionalStatusType() throws Exception{
+	public void testFunctionalStatusType() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2426108);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -288,7 +288,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testInstanceEdit() throws Exception{
+	public void testInstanceEdit() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(1598217);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -299,7 +299,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testPathwayDiagram() throws Exception{
+	public void testPathwayDiagram() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2162173);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -310,9 +310,9 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testPathwayVertex() throws Exception{
+	public void testPathwayVertex() throws Exception {
 		try {
-			ReactomeDatabaseObject object = rc.getFullObjectForDbId(8188920);
+			ReactomeDatabaseObject object = rc.getFullObjectForDbId(10834395);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -321,9 +321,9 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testReactionVertex() throws Exception{
+	public void testReactionVertex() throws Exception {
 		try {
-			ReactomeDatabaseObject object = rc.getFullObjectForDbId(8188943);
+			ReactomeDatabaseObject object = rc.getFullObjectForDbId(10834441);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -332,7 +332,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testCandidateSet() throws Exception{
+	public void testCandidateSet() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(198809);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -343,7 +343,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testOpenSet() throws Exception{
+	public void testOpenSet() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(162704);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -354,7 +354,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testDefinedSet() throws Exception{
+	public void testDefinedSet() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(453350);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -365,7 +365,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testOtherEntity() throws Exception{
+	public void testOtherEntity() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(162843);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -376,7 +376,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testPolymer() throws Exception{
+	public void testPolymer() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(2160866);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -387,7 +387,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testSimpleEntity() throws Exception{
+	public void testSimpleEntity() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(868632);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -398,7 +398,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testLiteratureReference() throws Exception{
+	public void testLiteratureReference() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(182836);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -409,7 +409,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testURL() throws Exception{
+	public void testURL() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(1170534);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -420,7 +420,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testReferenceDatabase() throws Exception{
+	public void testReferenceDatabase() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(1385634);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -431,7 +431,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testReactionCoordinates() throws Exception{
+	public void testReactionCoordinates() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(142110);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -441,9 +441,8 @@ public class GeneralTests extends ReactomeTestFunctions {
 		}
 	}
 
-
 	@Test
-	public void testReferenceGroup() throws Exception{
+	public void testReferenceGroup() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(164405);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -454,7 +453,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testReferenceMolecule() throws Exception{
+	public void testReferenceMolecule() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(142110);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -465,7 +464,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testReferenceIsoform() throws Exception{
+	public void testReferenceIsoform() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(59007);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -476,7 +475,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testReferenceRNASequence() throws Exception{
+	public void testReferenceRNASequence() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(188854);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -489,7 +488,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	@Test
 	public void testNegativeRegulation() throws Exception {
 		try {
-			ReactomeDatabaseObject object = rc.getFullObjectForDbId(6860411);
+			ReactomeDatabaseObject object = rc.getFullObjectForDbId(5229351);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -509,7 +508,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testPositiveRegulation() throws Exception{
+	public void testPositiveRegulation() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(5623897);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -520,7 +519,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testRegulationType() throws Exception{
+	public void testRegulationType() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(75342);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -531,7 +530,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testSummation() throws Exception{
+	public void testSummation() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(143360);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -542,7 +541,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testTaxon() throws Exception{
+	public void testTaxon() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(72968);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
@@ -555,7 +554,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	@Test
 	public void testReferenceDNASequence() throws Exception {
 		try {
-			ReactomeDatabaseObject object = rc.getFullObjectForDbId(6855923);
+			ReactomeDatabaseObject object = rc.getFullObjectForDbId(10030875);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
 		} catch (Exception e) {
 			e.printStackTrace();
@@ -564,7 +563,7 @@ public class GeneralTests extends ReactomeTestFunctions {
 	}
 
 	@Test
-	public void testSpecies() throws Exception{
+	public void testSpecies() throws Exception {
 		try {
 			ReactomeDatabaseObject object = rc.getFullObjectForDbId(181384);
 			assertFalse(object.getClass().getName().contains(ReactomeDatabaseObject.class.getName()));
-- 
GitLab