org.jhotdraw.test.figures
Class LineConnectionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jhotdraw.test.figures.LineConnectionTest
All Implemented Interfaces:
junit.framework.Test

public class LineConnectionTest
extends junit.framework.TestCase

TestCase LineConnectionTest is generated by JUnitDoclet to hold the tests for LineConnection.

See Also:
LineConnection

Constructor Summary
LineConnectionTest(java.lang.String name)
          Constructor LineConnectionTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.
 
Method Summary
 LineConnection createInstance()
          Factory method for instances of the class to be tested.
 void testCanConnect()
          Method testCanConnect is testing canConnect
 void testConnectEnd()
          Method testConnectEnd is testing connectEnd
 void testConnectsSame()
          Method testConnectsSame is testing connectsSame
 void testConnectStart()
          Method testConnectStart is testing connectStart
 void testDisconnectEnd()
          Method testDisconnectEnd is testing disconnectEnd
 void testDisconnectStart()
          Method testDisconnectStart is testing disconnectStart
 void testEndFigure()
          Method testEndFigure is testing endFigure
 void testEndPoint()
          Method testEndPoint is testing endPoint
 void testFigureChanged()
          Method testFigureChanged is testing figureChanged
 void testFigureInvalidated()
          Method testFigureInvalidated is testing figureInvalidated
 void testFigureRemoved()
          Method testFigureRemoved is testing figureRemoved
 void testFigureRequestRemove()
          Method testFigureRequestRemove is testing figureRequestRemove
 void testFigureRequestUpdate()
          Method testFigureRequestUpdate is testing figureRequestUpdate
 void testGetEndConnector()
          Method testGetEndConnector is testing getEndConnector
 void testGetStartConnector()
          Method testGetStartConnector is testing getStartConnector
 void testHandles()
          Method testHandles is testing handles
 void testInsertPointAt()
          Method testInsertPointAt is testing insertPointAt
 void testLayoutConnection()
          Method testLayoutConnection is testing layoutConnection
 void testRead()
          Method testRead is testing read
 void testRelease()
          Method testRelease is testing release
 void testRemovePointAt()
          Method testRemovePointAt is testing removePointAt
 void testSetPointAt()
          Method testSetPointAt is testing setPointAt
 void testStartFigure()
          Method testStartFigure is testing startFigure
 void testStartPoint()
          Method testStartPoint is testing startPoint
 void testUpdateConnection()
          Method testUpdateConnection is testing updateConnection
 void 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.
 void testVisit()
          Method testVisit is testing visit
 void testWrite()
          Method testWrite is testing write
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LineConnectionTest

public LineConnectionTest(java.lang.String name)
Constructor LineConnectionTest is basically calling the inherited constructor to initiate the TestCase for use by the Framework.

Method Detail

createInstance

public LineConnection createInstance()
                              throws java.lang.Exception
Factory method for instances of the class to be tested.

Throws:
java.lang.Exception

testCanConnect

public void testCanConnect()
                    throws java.lang.Exception
Method testCanConnect is testing canConnect

Throws:
java.lang.Exception
See Also:
LineConnection.canConnect()

testConnectStart

public void testConnectStart()
                      throws java.lang.Exception
Method testConnectStart is testing connectStart

Throws:
java.lang.Exception
See Also:
LineConnection.connectStart(org.jhotdraw.framework.Connector)

testConnectEnd

public void testConnectEnd()
                    throws java.lang.Exception
Method testConnectEnd is testing connectEnd

Throws:
java.lang.Exception
See Also:
LineConnection.connectEnd(org.jhotdraw.framework.Connector)

testDisconnectStart

public void testDisconnectStart()
                         throws java.lang.Exception
Method testDisconnectStart is testing disconnectStart

Throws:
java.lang.Exception
See Also:
LineConnection.disconnectStart()

testDisconnectEnd

public void testDisconnectEnd()
                       throws java.lang.Exception
Method testDisconnectEnd is testing disconnectEnd

Throws:
java.lang.Exception
See Also:
LineConnection.disconnectEnd()

testConnectsSame

public void testConnectsSame()
                      throws java.lang.Exception
Method testConnectsSame is testing connectsSame

Throws:
java.lang.Exception
See Also:
LineConnection.connectsSame(org.jhotdraw.framework.ConnectionFigure)

testStartFigure

public void testStartFigure()
                     throws java.lang.Exception
Method testStartFigure is testing startFigure

Throws:
java.lang.Exception
See Also:
LineConnection.startFigure()

testEndFigure

public void testEndFigure()
                   throws java.lang.Exception
Method testEndFigure is testing endFigure

Throws:
java.lang.Exception
See Also:
LineConnection.endFigure()

testGetStartConnector

public void testGetStartConnector()
                           throws java.lang.Exception
Method testGetStartConnector is testing getStartConnector

Throws:
java.lang.Exception
See Also:
LineConnection.getStartConnector()

testGetEndConnector

public void testGetEndConnector()
                         throws java.lang.Exception
Method testGetEndConnector is testing getEndConnector

Throws:
java.lang.Exception
See Also:
LineConnection.getEndConnector()

testStartPoint

public void testStartPoint()
                    throws java.lang.Exception
Method testStartPoint is testing startPoint

Throws:
java.lang.Exception
See Also:
LineConnection.startPoint(int, int)

testEndPoint

public void testEndPoint()
                  throws java.lang.Exception
Method testEndPoint is testing endPoint

Throws:
java.lang.Exception
See Also:
LineConnection.endPoint(int, int)

testHandles

public void testHandles()
                 throws java.lang.Exception
Method testHandles is testing handles

Throws:
java.lang.Exception
See Also:
LineConnection.handles()

testSetPointAt

public void testSetPointAt()
                    throws java.lang.Exception
Method testSetPointAt is testing setPointAt

Throws:
java.lang.Exception
See Also:
LineConnection.setPointAt(java.awt.Point, int)

testInsertPointAt

public void testInsertPointAt()
                       throws java.lang.Exception
Method testInsertPointAt is testing insertPointAt

Throws:
java.lang.Exception
See Also:
LineConnection.insertPointAt(java.awt.Point, int)

testRemovePointAt

public void testRemovePointAt()
                       throws java.lang.Exception
Method testRemovePointAt is testing removePointAt

Throws:
java.lang.Exception
See Also:
LineConnection.removePointAt(int)

testUpdateConnection

public void testUpdateConnection()
                          throws java.lang.Exception
Method testUpdateConnection is testing updateConnection

Throws:
java.lang.Exception
See Also:
LineConnection.updateConnection()

testLayoutConnection

public void testLayoutConnection()
                          throws java.lang.Exception
Method testLayoutConnection is testing layoutConnection

Throws:
java.lang.Exception
See Also:
LineConnection.layoutConnection()

testFigureChanged

public void testFigureChanged()
                       throws java.lang.Exception
Method testFigureChanged is testing figureChanged

Throws:
java.lang.Exception
See Also:
LineConnection.figureChanged(org.jhotdraw.framework.FigureChangeEvent)

testFigureRemoved

public void testFigureRemoved()
                       throws java.lang.Exception
Method testFigureRemoved is testing figureRemoved

Throws:
java.lang.Exception
See Also:
LineConnection.figureRemoved(org.jhotdraw.framework.FigureChangeEvent)

testFigureRequestRemove

public void testFigureRequestRemove()
                             throws java.lang.Exception
Method testFigureRequestRemove is testing figureRequestRemove

Throws:
java.lang.Exception
See Also:
LineConnection.figureRequestRemove(org.jhotdraw.framework.FigureChangeEvent)

testFigureInvalidated

public void testFigureInvalidated()
                           throws java.lang.Exception
Method testFigureInvalidated is testing figureInvalidated

Throws:
java.lang.Exception
See Also:
LineConnection.figureInvalidated(org.jhotdraw.framework.FigureChangeEvent)

testFigureRequestUpdate

public void testFigureRequestUpdate()
                             throws java.lang.Exception
Method testFigureRequestUpdate is testing figureRequestUpdate

Throws:
java.lang.Exception
See Also:
LineConnection.figureRequestUpdate(org.jhotdraw.framework.FigureChangeEvent)

testRelease

public void testRelease()
                 throws java.lang.Exception
Method testRelease is testing release

Throws:
java.lang.Exception
See Also:
LineConnection.release()

testWrite

public void testWrite()
               throws java.lang.Exception
Method testWrite is testing write

Throws:
java.lang.Exception
See Also:
LineConnection.write(org.jhotdraw.util.StorableOutput)

testRead

public void testRead()
              throws java.lang.Exception
Method testRead is testing read

Throws:
java.lang.Exception
See Also:
LineConnection.read(org.jhotdraw.util.StorableInput)

testVisit

public void testVisit()
               throws java.lang.Exception
Method testVisit is testing visit

Throws:
java.lang.Exception
See Also:
LineConnection.visit(org.jhotdraw.framework.FigureVisitor)

testVault

public void testVault()
               throws java.lang.Exception
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. Method testVault is supposed to be empty.

Throws:
java.lang.Exception