import static org.testng.AssertJUnit.assertEquals;
import static org.testng.AssertJUnit.assertTrue;
-import jalview.gui.JvOptionPane;
-
import javax.swing.JInternalFrame;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
+import jalview.gui.JvOptionPane;
import junit.extensions.PA;
public class PDBFTSPanelTest
String expectedString = "1xyz OR text:2xyz OR text:3xyz";
String outcome = PDBFTSPanel.decodeSearchTerm("1xyz:A;2xyz;3xyz",
"text");
- // System.out.println("1 >>>>>>>>>>> " + outcome);
+ System.out.println("1 >>>>>>>>>>> " + outcome);
assertEquals(expectedString, outcome);
expectedString = "1xyz";
assertTrue(!mainFrame.getTitle().equalsIgnoreCase(
"PDB Sequence Fetcher"));
}
+
+ @Test
+ public void getFTSframeTitleTest() {
+ PDBFTSPanel searchPanel = new PDBFTSPanel(null);
+ String outcome = searchPanel.getFTSFrameTitle();
+ //System.out.println("FTS Frame title :" + outcome);
+ assertEquals(outcome, "PDB Sequence Fetcher");
+ }
}