From 7bc9d91205fd18963414fc294818dba52d358522 Mon Sep 17 00:00:00 2001 From: hansonr Date: Mon, 26 Aug 2019 12:39:46 -0500 Subject: [PATCH] JAL-3423 TestNG test bugs PDBEntry needs to normalize file names under Windows, particularly for TestNG tests. --- src/jalview/datamodel/PDBEntry.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/datamodel/PDBEntry.java b/src/jalview/datamodel/PDBEntry.java index c1dc77c..2d3690c 100755 --- a/src/jalview/datamodel/PDBEntry.java +++ b/src/jalview/datamodel/PDBEntry.java @@ -220,7 +220,7 @@ public class PDBEntry public void setFile(String f) { - this.file = f; + this.file = f.replace('\\', '/'); } public String getFile() @@ -257,7 +257,7 @@ public class PDBEntry { if (this.properties == null) { - this.properties = new Hashtable(); + this.properties = new Hashtable<>(); } properties.put(key, value); } -- 1.7.10.2