/* * @(#)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.util; import org.jhotdraw.util.FloatingTextField; 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 FloatingTextFieldTest is generated by * JUnitDoclet to hold the tests for FloatingTextField. * @see org.jhotdraw.util.FloatingTextField */ // JUnitDoclet end javadoc_class public class FloatingTextFieldTest // JUnitDoclet begin extends_implements extends TestCase // JUnitDoclet end extends_implements { // JUnitDoclet begin class // instance variables, helper methods, ... put them in this marker private FloatingTextField floatingtextfield; // JUnitDoclet end class /** * Constructor FloatingTextFieldTest is * basically calling the inherited constructor to * initiate the TestCase for use by the Framework. */ public FloatingTextFieldTest(String name) { // JUnitDoclet begin method FloatingTextFieldTest super(name); // JUnitDoclet end method FloatingTextFieldTest } /** * Factory method for instances of the class to be tested. */ public FloatingTextField createInstance() throws Exception { // JUnitDoclet begin method testcase.createInstance return new FloatingTextField(); // 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(); floatingtextfield = 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 floatingtextfield = null; super.tearDown(); // JUnitDoclet end method testcase.tearDown } // JUnitDoclet begin javadoc_method createOverlay() /** * Method testCreateOverlay is testing createOverlay * @see org.jhotdraw.util.FloatingTextField#createOverlay(java.awt.Container) */ // JUnitDoclet end javadoc_method createOverlay() public void testCreateOverlay() throws Exception { // JUnitDoclet begin method createOverlay // JUnitDoclet end method createOverlay } // JUnitDoclet begin javadoc_method addActionListener() /** * Method testAddActionListener is testing addActionListener * @see org.jhotdraw.util.FloatingTextField#addActionListener(java.awt.event.ActionListener) */ // JUnitDoclet end javadoc_method addActionListener() public void testAddActionListener() throws Exception { // JUnitDoclet begin method addActionListener // JUnitDoclet end method addActionListener } // JUnitDoclet begin javadoc_method removeActionListener() /** * Method testRemoveActionListener is testing removeActionListener * @see org.jhotdraw.util.FloatingTextField#removeActionListener(java.awt.event.ActionListener) */ // JUnitDoclet end javadoc_method removeActionListener() public void testRemoveActionListener() throws Exception { // JUnitDoclet begin method removeActionListener // JUnitDoclet end method removeActionListener } // JUnitDoclet begin javadoc_method setBounds() /** * Method testSetBounds is testing setBounds * @see org.jhotdraw.util.FloatingTextField#setBounds(java.awt.Rectangle, java.lang.String) */ // JUnitDoclet end javadoc_method setBounds() public void testSetBounds() throws Exception { // JUnitDoclet begin method setBounds // JUnitDoclet end method setBounds } // JUnitDoclet begin javadoc_method getText() /** * Method testGetText is testing getText * @see org.jhotdraw.util.FloatingTextField#getText() */ // JUnitDoclet end javadoc_method getText() public void testGetText() throws Exception { // JUnitDoclet begin method getText // JUnitDoclet end method getText } // JUnitDoclet begin javadoc_method getPreferredSize() /** * Method testGetPreferredSize is testing getPreferredSize * @see org.jhotdraw.util.FloatingTextField#getPreferredSize(int) */ // JUnitDoclet end javadoc_method getPreferredSize() public void testGetPreferredSize() throws Exception { // JUnitDoclet begin method getPreferredSize // JUnitDoclet end method getPreferredSize } // JUnitDoclet begin javadoc_method endOverlay() /** * Method testEndOverlay is testing endOverlay * @see org.jhotdraw.util.FloatingTextField#endOverlay() */ // JUnitDoclet end javadoc_method endOverlay() public void testEndOverlay() throws Exception { // JUnitDoclet begin method endOverlay // JUnitDoclet end method endOverlay } // 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 } }