/* * SpinnerPanelTest.java * JUnit based test * * Created on December 4, 2006, 8:47 PM */ package chutesladder; import junit.framework.*; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.border.BevelBorder; import javax.swing.BorderFactory; import javax.swing.border.Border; import javax.swing.ImageIcon; import javax.swing.SwingConstants; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Color; import java.awt.Dimension; import javax.swing.SpringLayout; import java.awt.FlowLayout; import java.awt.BorderLayout; import java.lang.Integer; /** * * @author Anne */ public class SpinnerPanelTest extends TestCase { public SpinnerPanelTest(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } /** * Test of changeAngle method, of class chutesladder.SpinnerPanel. */ public void testChangeAngle() { System.out.println("changeAngle"); int x = 0; SpinnerPanel instance = new SpinnerPanel(); instance.changeAngle(x); // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); } /** * Test of paintComponent method, of class chutesladder.SpinnerPanel. */ public void testPaintComponent() { System.out.println("paintComponent"); Graphics g = null; SpinnerPanel instance = new SpinnerPanel(); instance.paintComponent(g); // TODO review the generated test code and remove the default call to fail. //fail("The test case is a prototype."); } }