From 02dcdd0868477a2d6755bef1af439667b5bfdba7 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 8 Nov 2021 18:24:06 +0000 Subject: [PATCH] JAL-3855 verify pdb suffix is preserved when locally loaded file is saved in project and imported --- test/jalview/project/Jalview2xmlTests.java | 2 ++ 1 file changed, 2 insertions(+) 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"); } } -- 1.7.10.2