import junit.framework.TestCase; public class JKFFTest extends TestCase { JKFF ff; public void setUp() { ff = new JKFF(); } public void testDefaultInitialization() { assertEquals("FF Initialization", false, ff.getQ() ); } public void testClock0() { ff.clock(); assertEquals("FF Clock0 toggle from init", true, ff.getQ()); } public void testCommandOne() { ff.setJ(true); ff.setK(false); ff.clock(); assertEquals("commanding a one", true, ff.getQ()); } }