public void testSetTextCanNotifyActionListeners() throws Exception { DummyActionListener actionListener = initWithTextFieldAndActionListener(); textBox.setText("text", false); assertEquals(0, actionListener.getCallCount()); UISpecAssert.assertTrue(textBox.textEquals("text")); textBox.setText("another text", true); assertEquals(1, actionListener.getCallCount()); UISpecAssert.assertTrue(textBox.textEquals("another text")); }
public void gameContainsCombatPanel() { Panel panel = new Panel(frame); UISpecAssert.assertTrue(panel.getPanel("CombatPanel").isVisible()); }