import static org.testng.Assert.fail;
import jalview.datamodel.PDBEntry.Type;
+import jalview.gui.JvOptionPane;
//import org.testng.Assert;
import org.testng.annotations.AfterMethod;
+import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
public class PDBEntryTest
{
+ @BeforeClass(alwaysRun = true)
+ public void setUpJvOptionPane()
+ {
+ JvOptionPane.setInteractiveMode(false);
+ JvOptionPane.setMockResponse(JvOptionPane.CANCEL_OPTION);
+ }
+
@BeforeMethod(alwaysRun = true)
public void setUp() throws Exception
{
assertTrue(pdb1.updateFrom(pdb2));
assertEquals(pdb1.getFile(), "filePath");
assertEquals(pdb1.getType(), Type.FILE.toString());
-
+ assertEquals(pdb1.getChainCode(),"B");
/*
* change of file is not allowed
*/