/* * TestStub.java * * Version: * $Id: TestStub.txt,v 1.1 2001/01/27 19:17:47 mks Exp $ * * Revisions: * $Log: TestStub.txt,v $ * Revision 1.1 2001/01/27 19:17:47 mks * Initial revision * * Revision 1.1 2001/01/22 03:58:55 mks * Initial revision * */ /** * This class tests the TimeCounter class to see if the signatures * for the methods are correct. The program does not produce * any useful output. * * The purpose of this code is not the test the methods to see if * they produce the correct result. It simply tests to see if all * of the methods in TimeCounter have been implemented and that they * have the correct signature. */ public class TestStub { /** * The main method - tests the TimeCounter class * * @param args command line arguments (ignored) */ public static void main( String args[] ) { TimeCounter firstTimeCounter; TimeCounter secondTimeCounter; int time; // Verify Constructors firstTimeCounter = new TimeCounter(); secondTimeCounter = new TimeCounter( 1000 ); // Verify Get/Set for attributes time = firstTimeCounter.getTime(); firstTimeCounter.setTime( 2000 ); // Verify Tick() firstTimeCounter.tick(); // Verify get current time methods time = firstTimeCounter.getTSeconds(); time = firstTimeCounter.getSeconds(); time = firstTimeCounter.getMinutes(); time = firstTimeCounter.getHours(); // Verify reset firstTimeCounter.reset(); // Say something so we know the program worked System.out.println( "The TimeCounter class signatures appear correct" ); } } // TestStub