import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
+import junit.extensions.PA;
+
public class PDBFTSPanelTest
{
{
PDBFTSPanel searchPanel = new PDBFTSPanel(null);
JInternalFrame mainFrame = searchPanel.getMainFrame();
- JComboBox<String> txt_search = searchPanel.getTxtSearch();
+// JComboBox<String> txt_search = PA.gsearchPanel.getTxtSearch();
assertTrue(mainFrame.getTitle().length() == 20);
assertTrue(mainFrame.getTitle()
.equalsIgnoreCase("PDB Sequence Fetcher"));
- txt_search.setSelectedItem("ABC");
+ PA.invokeMethod(PA.getValue(searchPanel, "txt_search"), "setSelectedItem(java.lang.String)", "ABC");
+ // txt_search.setSelectedItem("ABC");
try
{
// wait for web-service to handle response
try
{
- // This 1ms delay is essential to prevent the
+ // This delay is essential to prevent the
// assertion below from executing before
// swing thread finishes updating the combo-box
Thread.sleep(100);