JAL-3855 verify pdb suffix is preserved when locally loaded file is saved in project...
authorJim Procter <j.procter@dundee.ac.uk>
Mon, 8 Nov 2021 18:24:06 +0000 (18:24 +0000)
committerJim Procter <j.procter@dundee.ac.uk>
Mon, 8 Nov 2021 18:24:06 +0000 (18:24 +0000)
test/jalview/project/Jalview2xmlTests.java

index eb66416..42d68a9 100644 (file)
@@ -33,6 +33,7 @@ import java.io.IOException;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 
 import javax.swing.JInternalFrame;
@@ -804,6 +805,7 @@ public class Jalview2xmlTests extends Jalview2xmlBase
               "Mismatch PDBEntry 'Type'");
       Assert.assertNotNull(recov.getFile(),
               "Recovered PDBEntry should have a non-null file entry");
+      Assert.assertEquals(recov.getFile().toLowerCase(Locale.ENGLISH).lastIndexOf("pdb"),recov.getFile().length()-3, "Recovered PDBEntry file should have PDB suffix");
     }
   }