|
From: <rga...@us...> - 2002-10-18 15:06:22
|
Update of /cvsroot/csms/csms-core/src/test/src/org/fanfoot/gui In directory usw-pr-cvs1:/tmp/cvs-serv10867/test/src/org/fanfoot/gui Added Files: TestControlCentre.java Log Message: Initial test code for scoring application --- NEW FILE: TestControlCentre.java --- /* * File is generated by 'Unit Tests Generator' developed under * 'Web Test Tools' project at http://sf.net/projects/wttools/ * Copyright (C) 2001 "Artur Hefczyc" <ko...@us...> * to all 'Web Test Tools' subprojects. * * No rigths to files and no responsibility for code generated * by this tool are belonged to author of 'unittestsgen' utility. * * $Id: TestControlCentre.java,v 1.1 2002/10/18 15:06:18 rgardler Exp $ * $Author: rgardler $ * $Date: 2002/10/18 15:06:18 $ */ package org.fanfoot.gui; import junit.framework.*; import junit.extensions.*; import java.awt.Toolkit; import java.awt.AWTEvent; import java.awt.event.AWTEventListener; import java.awt.event.WindowEvent; /** * File <code>TestControlCentre.java</code> is automaticaly generated by * 'unittestsgen' application. Code generator is created for java * sources and for 'junit' package by "Artur Hefczyc" * <ko...@us...><br/> * You should fulfil test methods with proper code for testing * purpose. All methods where you should put your code are below and * their names starts with 'test'.<br/> * You can run unit tests in many ways, however prefered are: * <ul> * <li>Run tests for one class only, for example for this class you * can run tests with command: * <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" org.fanfoot.gui.TestControlCentre * </pre> * </li> * <li>Run tests for all classes in one command call. Code generator * creates also <code>TestAll.class</code> which runs all * available tests: * <pre> * java -cp "jar/thisjarfile.jar;lib/junit.jar" TestAll * </pre> * </li> * <li>But the most prefered way is to run all tests from * <em>Ant</em> just after compilation process finished.<br/> * To do it. You need: * <ol> * <li>Ant package from * <a href="http://jakarta.apache.org/">Ant</a> * </li> * <li>JUnit package from * <a href="http://www.junit.org/">JUnit</a> * </li> * <li>Put some code in your <code>build.xml</code> file * to tell Ant how to test your package. Sample code for * Ant's <code>build.xml</code> you can find in created file: * <code>sample-junit-build.xml</code>. And remember to have * <code>junit.jar</code> in CLASSPATH <b>before</b> you run Ant. * To generate reports by ant you must have <code>xalan.jar</code> * in your <code>ANT_HOME/lib/</code> directory. * </li> * </ol> * </li> * </ul> */ public class TestControlCentre extends TestCase { /** * Instance of tested class. */ protected ControlCentre varControlCentre; /** * Public constructor for creating testing class. */ public TestControlCentre(String name) { super(name); } // end of TestControlCentre(String name) /** * This main method is used for run tests for this class only * from command line. */ public static void main(String[] args) { junit.textui.TestRunner.run(suite()); } // end of main(Stringp[] args) /** * This method is called every time before particular test execution. * It creates new instance of tested class and it can perform some more * actions which are necessary for performs tests. */ protected void setUp() { try { varControlCentre = new org.fanfoot.gui.ControlCentre(); } catch(Exception e){ varControlCentre = null; } } // end of setUp() /** * Returns all tests which should be performed for testing class. * By default it returns only name of testing class. Instance of this * is then created with its constructor. */ public static Test suite() { return new TestSuite(TestControlCentre.class); } // end of suite() /** * for classes which doesn't contain any methods here is one additional * method for performing test on such classes. */ public void testNoMethods() { } /** * Method for testing how works original method: * void access$000( ... ) * from tested class */ public void testAccess$000607584050671810214() { } // end of testAccess$000607584050671810214( ... ) /** * Method for testing how works original method: * void access$100( ... ) * from tested class */ public void testAccess$1006075840501002842412() { } // end of testAccess$1006075840501002842412( ... ) /** * Method for testing how works original method: * void access$200( ... ) * from tested class */ public void testAccess$2006075840501002842412() { } // end of testAccess$2006075840501002842412( ... ) /** * Method for testing how works original method: * void access$300( ... ) * from tested class */ public void testAccess$3006075840501002842412() { } // end of testAccess$3006075840501002842412( ... ) /** * Method for testing how works original method: * void access$400( ... ) * from tested class */ public void testAccess$4006075840501002842412() { } // end of testAccess$4006075840501002842412( ... ) /** * Method for testing how works original method: * java.lang.Class class$(java.lang.String) * from tested class */ public void testClass$1195259493() { } // end of testClass$1195259493(java.lang.String) /** * Method for testing how works original method: * void main(java.lang.String[]) * from tested class */ public void testMain1888107655() { } // end of testMain1888107655(java.lang.String[]) } // end of TestControlCentre |