From: Jim Procter Date: Mon, 8 Nov 2021 18:24:06 +0000 (+0000) Subject: JAL-3855 verify pdb suffix is preserved when locally loaded file is saved in project... X-Git-Tag: Release_2_11_2_0~22^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=02dcdd0868477a2d6755bef1af439667b5bfdba7;p=jalview.git JAL-3855 verify pdb suffix is preserved when locally loaded file is saved in project and imported --- diff --git a/test/jalview/project/Jalview2xmlTests.java b/test/jalview/project/Jalview2xmlTests.java index eb66416..42d68a9 100644 --- a/test/jalview/project/Jalview2xmlTests.java +++ b/test/jalview/project/Jalview2xmlTests.java @@ -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"); } }