import jalview.fts.core.FTSRestResponse;
import jalview.fts.service.pdb.PDBFTSRestClient;
import jalview.jbgui.FilterOption;
-import jalview.struture.PDBEntryUtils;
+import jalview.structure.PDBEntryUtils;
import jalview.util.MessageManager;
/**
* along with Jalview. If not, see <http://www.gnu.org/licenses/>.
* The Jalview Authors are detailed in the 'AUTHORS' file.
*/
-package jalview.struture;
+package jalview.structure;
import java.util.ArrayList;
import java.util.HashSet;
import jalview.io.DataSourceType;
import jalview.io.StructureFile;
import jalview.structure.StructureImportSettings.TFType;
-import jalview.struture.PDBEntryUtils;
import jalview.util.MapList;
import jalview.util.MappingUtils;
import jalview.util.MessageManager;
--- /dev/null
+package jalview.structure;
+
+import static org.testng.Assert.assertEquals;
+
+import java.util.List;
+
+import org.testng.annotations.Test;
+
+import jalview.datamodel.PDBEntry;
+import jalview.datamodel.Sequence;
+
+public class PDBEntryUtilsTest
+{
+
+ @Test(groups= {"Functional"})
+ public void testinferPDBEntry() {
+ List<PDBEntry> expected;
+ expected = PDBEntryUtils.inferPDBEntry(new Sequence("1sqy_A.pdb",""));
+ assertEquals(expected.size(),1);
+ PDBEntry exp = expected.get(0);
+ assertEquals(exp.getId(),"1sqy");
+ assertEquals(exp.getChainCode(), "A");
+
+
+ }
+}