JAL-2780 use value of ’UNASSIGNED’ constant in assert verifying expected unassigned...
authorJim Procter <jprocter@issues.jalview.org>
Mon, 12 Feb 2018 16:43:30 +0000 (16:43 +0000)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 12 Feb 2018 16:43:30 +0000 (16:43 +0000)
test/jalview/ws/sifts/SiftsClientTest.java

index b92766e..5e830ab 100644 (file)
@@ -311,7 +311,7 @@ public class SiftsClientTest
     atom.atomIndex = 7;
     atoms.add(atom);
     int actualAtomIndex = siftsClient.getAtomIndex(1, atoms);
-    Assert.assertEquals(actualAtomIndex, -1);
+    Assert.assertEquals(actualAtomIndex, siftsClient.UNASSIGNED);
     actualAtomIndex = siftsClient.getAtomIndex(43, atoms);
     Assert.assertEquals(actualAtomIndex, 7);
   }