/* * GamePlayPanelTest.java * JUnit based test * * Created on December 12, 2006, 9:19 AM */ package chutesladder; import junit.framework.*; import javax.swing.JPanel; import javax.swing.JButton; import java.util.Random; import java.util.Date; import java.awt.Color; import java.awt.BorderLayout; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; /** * * @author rmann */ public class GamePlayPanelTest extends TestCase { public GamePlayPanelTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } /** * Test of getSpinnerValue method, of class chutesladder.GamePlayPanel. */ public void testGetSpinnerValue() { System.out.println("getSpinnerValue"); GamePlayPanel instance = new GamePlayPanel(); int expResult = 1; int result = instance.getSpinnerValue(); assertEquals(expResult, result); // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); } /** * Test of SetButtonFalse method, of class chutesladder.GamePlayPanel. */ public void testSetButtonFalse() { System.out.println("SetButtonFalse"); GamePlayPanel.SetButtonFalse(); // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); } /** * Test of SetButtonTrue method, of class chutesladder.GamePlayPanel. */ public void testSetButtonTrue() { System.out.println("SetButtonTrue"); GamePlayPanel.SetButtonTrue(); // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); } /** * Test of forceSpin method, of class chutesladder.GamePlayPanel. */ public void testForceSpin() { System.out.println("forceSpin"); GamePlayPanel.forceSpin(); // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); } }