/* * @(#)Test.java * * Project: JHotdraw - a GUI framework for technical drawings * http://www.jhotdraw.org * http://jhotdraw.sourceforge.net * Copyright: (c) by the original author(s) and all contributors * License: Lesser GNU Public License (LGPL) * http://www.opensource.org/licenses/lgpl-license.html */ package org.jhotdraw.test.samples.pert; import org.jhotdraw.samples.pert.PertFigure; import junit.framework.TestCase; // JUnitDoclet begin import // JUnitDoclet end import /* * Generated by JUnitDoclet, a tool provided by * ObjectFab GmbH under LGPL. * Please see www.junitdoclet.org, www.gnu.org * and www.objectfab.de for informations about * the tool, the licence and the authors. */ // JUnitDoclet begin javadoc_class /** * TestCase PertFigureTest is generated by * JUnitDoclet to hold the tests for PertFigure. * @see org.jhotdraw.samples.pert.PertFigure */ // JUnitDoclet end javadoc_class public class PertFigureTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class // instance variables, helper methods, ... put them in this marker private PertFigure pertfigure; // JUnitDoclet end class /** * Constructor PertFigureTest is * basically calling the inherited constructor to * initiate the TestCase for use by the Framework. */ public PertFigureTest(String name) { // JUnitDoclet begin method PertFigureTest super(name); // JUnitDoclet end method PertFigureTest } /** * Factory method for instances of the class to be tested. */ public PertFigure createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new PertFigure(); // JUnitDoclet end method testcase.createInstance } /** * Method setUp is overwriting the framework method to * prepare an instance of this TestCase for a single test. * It's called from the JUnit framework only. */ protected void setUp() throws Exception { // JUnitDoclet begin method testcase.setUp super.setUp(); pertfigure = createInstance(); // JUnitDoclet end method testcase.setUp } /** * Method tearDown is overwriting the framework method to * clean up after each single test of this TestCase. * It's called from the JUnit framework only. */ protected void tearDown() throws Exception { // JUnitDoclet begin method testcase.tearDown pertfigure = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } // JUnitDoclet begin javadoc_method start() /** * Method testStart is testing start * @see org.jhotdraw.samples.pert.PertFigure#start() */ // JUnitDoclet end javadoc_method start() public void testStart() throws Exception { // JUnitDoclet begin method start // JUnitDoclet end method start } // JUnitDoclet begin javadoc_method end() /** * Method testEnd is testing end * @see org.jhotdraw.samples.pert.PertFigure#end() */ // JUnitDoclet end javadoc_method end() public void testEnd() throws Exception { // JUnitDoclet begin method end // JUnitDoclet end method end } // JUnitDoclet begin javadoc_method duration() /** * Method testDuration is testing duration * @see org.jhotdraw.samples.pert.PertFigure#duration() */ // JUnitDoclet end javadoc_method duration() public void testDuration() throws Exception { // JUnitDoclet begin method duration // JUnitDoclet end method duration } // JUnitDoclet begin javadoc_method setEnd() /** * Method testSetEnd is testing setEnd * @see org.jhotdraw.samples.pert.PertFigure#setEnd(int) */ // JUnitDoclet end javadoc_method setEnd() public void testSetEnd() throws Exception { // JUnitDoclet begin method setEnd // JUnitDoclet end method setEnd } // JUnitDoclet begin javadoc_method addPreTask() /** * Method testAddPreTask is testing addPreTask * @see org.jhotdraw.samples.pert.PertFigure#addPreTask(org.jhotdraw.samples.pert.PertFigure) */ // JUnitDoclet end javadoc_method addPreTask() public void testAddPreTask() throws Exception { // JUnitDoclet begin method addPreTask // JUnitDoclet end method addPreTask } // JUnitDoclet begin javadoc_method addPostTask() /** * Method testAddPostTask is testing addPostTask * @see org.jhotdraw.samples.pert.PertFigure#addPostTask(org.jhotdraw.samples.pert.PertFigure) */ // JUnitDoclet end javadoc_method addPostTask() public void testAddPostTask() throws Exception { // JUnitDoclet begin method addPostTask // JUnitDoclet end method addPostTask } // JUnitDoclet begin javadoc_method removePreTask() /** * Method testRemovePreTask is testing removePreTask * @see org.jhotdraw.samples.pert.PertFigure#removePreTask(org.jhotdraw.samples.pert.PertFigure) */ // JUnitDoclet end javadoc_method removePreTask() public void testRemovePreTask() throws Exception { // JUnitDoclet begin method removePreTask // JUnitDoclet end method removePreTask } // JUnitDoclet begin javadoc_method removePostTask() /** * Method testRemovePostTask is testing removePostTask * @see org.jhotdraw.samples.pert.PertFigure#removePostTask(org.jhotdraw.samples.pert.PertFigure) */ // JUnitDoclet end javadoc_method removePostTask() public void testRemovePostTask() throws Exception { // JUnitDoclet begin method removePostTask // JUnitDoclet end method removePostTask } // JUnitDoclet begin javadoc_method displayBox() /** * Method testDisplayBox is testing displayBox * @see org.jhotdraw.samples.pert.PertFigure#displayBox() */ // JUnitDoclet end javadoc_method displayBox() public void testDisplayBox() throws Exception { // JUnitDoclet begin method displayBox // JUnitDoclet end method displayBox } // JUnitDoclet begin javadoc_method basicDisplayBox() /** * Method testBasicDisplayBox is testing basicDisplayBox * @see org.jhotdraw.samples.pert.PertFigure#basicDisplayBox(java.awt.Point, java.awt.Point) */ // JUnitDoclet end javadoc_method basicDisplayBox() public void testBasicDisplayBox() throws Exception { // JUnitDoclet begin method basicDisplayBox // JUnitDoclet end method basicDisplayBox } // JUnitDoclet begin javadoc_method draw() /** * Method testDraw is testing draw * @see org.jhotdraw.samples.pert.PertFigure#draw(java.awt.Graphics) */ // JUnitDoclet end javadoc_method draw() public void testDraw() throws Exception { // JUnitDoclet begin method draw // JUnitDoclet end method draw } // JUnitDoclet begin javadoc_method handles() /** * Method testHandles is testing handles * @see org.jhotdraw.samples.pert.PertFigure#handles() */ // JUnitDoclet end javadoc_method handles() public void testHandles() throws Exception { // JUnitDoclet begin method handles // JUnitDoclet end method handles } // JUnitDoclet begin javadoc_method update() /** * Method testUpdate is testing update * @see org.jhotdraw.samples.pert.PertFigure#update(org.jhotdraw.framework.FigureChangeEvent) */ // JUnitDoclet end javadoc_method update() public void testUpdate() throws Exception { // JUnitDoclet begin method update // JUnitDoclet end method update } // JUnitDoclet begin javadoc_method figureChanged() /** * Method testFigureChanged is testing figureChanged * @see org.jhotdraw.samples.pert.PertFigure#figureChanged(org.jhotdraw.framework.FigureChangeEvent) */ // JUnitDoclet end javadoc_method figureChanged() public void testFigureChanged() throws Exception { // JUnitDoclet begin method figureChanged // JUnitDoclet end method figureChanged } // JUnitDoclet begin javadoc_method figureRemoved() /** * Method testFigureRemoved is testing figureRemoved * @see org.jhotdraw.samples.pert.PertFigure#figureRemoved(org.jhotdraw.framework.FigureChangeEvent) */ // JUnitDoclet end javadoc_method figureRemoved() public void testFigureRemoved() throws Exception { // JUnitDoclet begin method figureRemoved // JUnitDoclet end method figureRemoved } // JUnitDoclet begin javadoc_method notifyPostTasks() /** * Method testNotifyPostTasks is testing notifyPostTasks * @see org.jhotdraw.samples.pert.PertFigure#notifyPostTasks() */ // JUnitDoclet end javadoc_method notifyPostTasks() public void testNotifyPostTasks() throws Exception { // JUnitDoclet begin method notifyPostTasks // JUnitDoclet end method notifyPostTasks } // JUnitDoclet begin javadoc_method updateDurations() /** * Method testUpdateDurations is testing updateDurations * @see org.jhotdraw.samples.pert.PertFigure#updateDurations() */ // JUnitDoclet end javadoc_method updateDurations() public void testUpdateDurations() throws Exception { // JUnitDoclet begin method updateDurations // JUnitDoclet end method updateDurations } // JUnitDoclet begin javadoc_method hasCycle() /** * Method testHasCycle is testing hasCycle * @see org.jhotdraw.samples.pert.PertFigure#hasCycle(org.jhotdraw.framework.Figure) */ // JUnitDoclet end javadoc_method hasCycle() public void testHasCycle() throws Exception { // JUnitDoclet begin method hasCycle // JUnitDoclet end method hasCycle } // JUnitDoclet begin javadoc_method write() /** * Method testWrite is testing write * @see org.jhotdraw.samples.pert.PertFigure#write(org.jhotdraw.util.StorableOutput) */ // JUnitDoclet end javadoc_method write() public void testWrite() throws Exception { // JUnitDoclet begin method write // JUnitDoclet end method write } // JUnitDoclet begin javadoc_method writeTasks() /** * Method testWriteTasks is testing writeTasks * @see org.jhotdraw.samples.pert.PertFigure#writeTasks(org.jhotdraw.util.StorableOutput, java.util.List) */ // JUnitDoclet end javadoc_method writeTasks() public void testWriteTasks() throws Exception { // JUnitDoclet begin method writeTasks // JUnitDoclet end method writeTasks } // JUnitDoclet begin javadoc_method read() /** * Method testRead is testing read * @see org.jhotdraw.samples.pert.PertFigure#read(org.jhotdraw.util.StorableInput) */ // JUnitDoclet end javadoc_method read() public void testRead() throws Exception { // JUnitDoclet begin method read // JUnitDoclet end method read } // JUnitDoclet begin javadoc_method connectionInsets() /** * Method testConnectionInsets is testing connectionInsets * @see org.jhotdraw.samples.pert.PertFigure#connectionInsets() */ // JUnitDoclet end javadoc_method connectionInsets() public void testConnectionInsets() throws Exception { // JUnitDoclet begin method connectionInsets // JUnitDoclet end method connectionInsets } // JUnitDoclet begin javadoc_method readTasks() /** * Method testReadTasks is testing readTasks * @see org.jhotdraw.samples.pert.PertFigure#readTasks(org.jhotdraw.util.StorableInput) */ // JUnitDoclet end javadoc_method readTasks() public void testReadTasks() throws Exception { // JUnitDoclet begin method readTasks // JUnitDoclet end method readTasks } // JUnitDoclet begin javadoc_method testVault /** * JUnitDoclet moves marker to this method, if there is not match * for them in the regenerated code and if the marker is not empty. * This way, no test gets lost when regenerating after renaming. * <b>Method testVault is supposed to be empty.</b> */ // JUnitDoclet end javadoc_method testVault public void testVault() throws Exception { // JUnitDoclet begin method testcase.testVault // JUnitDoclet end method testcase.testVault } }