public void buildQueryTest()
{
String query = StructureChooser.buildQuery(seq);
- System.out.println(">>>>>>>>>> query : " + query);
+ assertEquals("pdb_id:1tim", query);
+ System.out.println("seq >>>> " + seq);
+ seq.getAllPDBEntries().clear();
+ query = StructureChooser.buildQuery(seq);
assertEquals(
- "4kqy OR text:1tim OR text:XYZ_1 OR text:XYZ_2 OR text:XYZ_3 OR text:XYZ_4",
+ "text:XYZ_1 OR text:XYZ_2 OR text:XYZ_3 OR text:XYZ_4 OR text:4kqy",
query);
+ seq.setDBRefs(null);
+ query = StructureChooser.buildQuery(seq);
+ assertEquals("text:4kqy", query);
}
@Test(groups = { "Functional" })
sc.setStructuresDiscovered(true);
sc.populateFilterComboBox();
+ try
+ {
+ Thread.sleep(2000);
+ } catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
optionsSize = sc.getCmbFilterOption().getItemCount();
assertTrue(optionsSize > 3); // if structures are found, filter options
// should be populated