assertEquals(expectedString, outcome);
}
- @Test(groups = { "Network", "External" }, timeOut = 5000)
+ @Test(groups = { "Network", "External" }, timeOut = 7000)
public void txt_search_ActionPerformedTest()
{
PDBSearchPanel searchPanel = new PDBSearchPanel(null);
assertTrue(mainFrame.getTitle().length() == 20);
assertTrue(mainFrame.getTitle()
.equalsIgnoreCase("PDB Sequence Fetcher"));
-
txt_search.setText("ABC");
-
+ try
+ {
+ // wait for web-service to handle response
+ Thread.sleep(3000);
+ } catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
assertTrue(mainFrame.getTitle().length() > 20);
assertTrue(!mainFrame.getTitle().equalsIgnoreCase(
"PDB Sequence Fetcher"));
sc.setStructuresDiscovered(true);
sc.populateFilterComboBox();
+ try
+ {
+ Thread.sleep(1000);
+ } catch (InterruptedException e)
+ {
+ e.printStackTrace();
+ }
optionsSize = sc.getCmbFilterOption().getItemCount();
assertTrue(optionsSize > 3); // if structures are found, filter options
// should be populated