Test suite try/catch reverted
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Mon, 4 Feb 2019 14:45:20 +0000 (08:45 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Mon, 4 Feb 2019 14:45:20 +0000 (08:45 -0600)
test/jalview/analysis/AlignmentUtilsTests.java
test/jalview/analysis/CrossRefTest.java
test/jalview/datamodel/SequenceTest.java
test/jalview/gui/StructureChooserTest.java

index 7c6f624..cc438be 100644 (file)
@@ -975,12 +975,7 @@ public class AlignmentUtilsTests
     assertTrue(AlignmentUtils.haveCrossRef(seq2, seq1));
 
     // now the other way round
-    try {
-               seq1.setDBRefs(null);
-       } catch (InvalidArgumentException e) {
-               // TODO Auto-generated catch block
-               e.printStackTrace();
-       }
+       seq1.setDBRefs(null);
     seq2.addDBRef(new DBRefEntry("EMBL", "1", "A12345"));
     assertTrue(AlignmentUtils.haveCrossRef(seq1, seq2));
     assertTrue(AlignmentUtils.haveCrossRef(seq2, seq1));
index a398cc9..fed31b1 100644 (file)
@@ -143,12 +143,7 @@ public class CrossRefTest
      * and others to dna coding databases
      */
     sources.clear();
-    try {
-               seq.setDBRefs(null);
-       } catch (InvalidArgumentException e) {
-               // TODO Auto-generated catch block
-               e.printStackTrace();
-       }
+       seq.setDBRefs(null);
     seq.addDBRef(new DBRefEntry("UNIPROT", "0", "A1234"));
     seq.addDBRef(new DBRefEntry("EMBLCDS", "0", "E2347"));
     SequenceI seq2 = new Sequence("Seq2", "MGKYQARLSS");
index bf6d403..e262659 100644 (file)
@@ -1225,12 +1225,7 @@ public class SequenceTest
     assertTrue(primaryDBRefs.isEmpty());
 
     // empty dbrefs
-    try {
-               sq.setDBRefs(new ArrayList<DBRefEntry>());
-       } catch (InvalidArgumentException e) {
-               // TODO Auto-generated catch block
-               e.printStackTrace();
-       }
+       sq.setDBRefs(null);
     primaryDBRefs = sq.getPrimaryDBRefs();
     assertTrue(primaryDBRefs.isEmpty());
 
index 3f7a3f8..073bde8 100644 (file)
@@ -94,12 +94,7 @@ public class StructureChooserTest
     assertEquals(
             "text:XYZ_1 OR text:XYZ_2 OR text:XYZ_3 OR text:XYZ_4 OR text:4kqy",
             query);
-    try {
-               seq.setDBRefs(null);
-       } catch (InvalidArgumentException e) {
-               // TODO Auto-generated catch block
-               e.printStackTrace();
-       }
+       seq.setDBRefs(null);
     query = StructureChooser.buildQuery(seq);
     assertEquals("text:4kqy", query);