From e58338b16e2eb64fd76cddffd6aae20be44f54e8 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 3 Sep 2021 18:42:42 +0100 Subject: [PATCH] JAL-3829 use sequence dependent constructor for structure chooser query engine testing --- test/jalview/gui/StructureChooserTest.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/jalview/gui/StructureChooserTest.java b/test/jalview/gui/StructureChooserTest.java index c187c60..f3c5ed8 100644 --- a/test/jalview/gui/StructureChooserTest.java +++ b/test/jalview/gui/StructureChooserTest.java @@ -32,6 +32,7 @@ import jalview.datamodel.SequenceI; import jalview.fts.api.FTSData; import jalview.gui.structurechooser.PDBStructureChooserQuerySource; import jalview.gui.structurechooser.StructureChooserQuerySource; +import jalview.gui.structurechooser.ThreeDBStructureChooserQuerySource; import jalview.jbgui.FilterOption; import jalview.ws.params.InvalidArgumentException; @@ -90,7 +91,9 @@ public class StructureChooserTest public void buildQueryTest() { System.out.println("seq >>>> " + seq); - StructureChooserQuerySource scquery = StructureChooserQuerySource.getPDBfts(); + + StructureChooserQuerySource scquery = StructureChooserQuerySource.getQuerySourceFor(new SequenceI[] { seq}); + assertTrue(scquery instanceof PDBStructureChooserQuerySource); String query = scquery.buildQuery(seq); assertEquals("pdb_id:1tim", query); seq.getAllPDBEntries().clear(); -- 1.7.10.2