net.sourceforge.demetrix.test.ui
Class ProcessChainEditorTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
junitx.framework.PrivateTestCase
net.sourceforge.demetrix.test.ui.ProcessChainEditorTest
- All Implemented Interfaces:
- Test
- public class ProcessChainEditorTest
- extends PrivateTestCase
- Author:
- Dimitri Pissarenko
Fields inherited from class junit.framework.TestCase |
|
Methods inherited from class junitx.framework.PrivateTestCase |
asBoolean, asByte, asChar, asDouble, asFloat, asInt, asLong, asShort, dumpKeys, get, get, getBoolean, getByte, getChar, getDouble, getFloat, getInt, getLong, getShort, invoke, invokeWithKey, newInstance, newInstanceWithKey |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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 |
logger
private Logger logger
ProcessChainEditorTest
public ProcessChainEditorTest(String arg0)
- Constructor for ProcessChainEditorTest.
- Parameters:
arg0
-
main
public static void main(String[] args)
testStateOfMenuItemsAtStartup
public void testStateOfMenuItemsAtStartup()
- this test case verifies that all those menu items, which require that
a process chain is present, are disabled at startup (when no process
chain is present)
testStateOfMenuItemsAfterNewProcessChain
public void testStateOfMenuItemsAfterNewProcessChain()
- this test case verifies that menu items are set correctly (enabled/disabled),
after a process chain was created using the newProcessChain menu item.
Note: make sure that the function, which sets the availability of the menu
items is also called, when a process chain is loaded from a file.
testCurrentlySelectedNodeChangedOnNullNode
public void testCurrentlySelectedNodeChangedOnNullNode()
testBug878797
public void testBug878797()
- Bugfix test case
================
This test case reproduces the bug #878797.
https://sourceforge.net/tracker/index.php?func=detail&aid=878797&group_id=97569&atid=618426
createGraphNodes produces a JGraphT exception
Sometimes, ProcessChainEditor.createGraphNodes
produces the following exception:
java.lang.IllegalArgumentException: no such vertex in
graph
at
org._3pq.jgrapht.graph.AbstractGraph.assertVertexExist
(Unknown Source)
at
org._3pq.jgrapht.graph.AbstractBaseGraph.addEdge
(Unknown Source)
at
org._3pq.jgrapht.graph.GraphDelegator.addEdge
(Unknown Source)
at
org._3pq.jgrapht.graph.DefaultListenableGraph.addEdge
(Unknown Source)
at
net.sourceforge.demetrix.ui.ProcessChainEditor.createGra
phNodes(ProcessChainEditor.java:201)
at
net.sourceforge.demetrix.ui.ProcessChainEditor.recreateG
raphs(ProcessChainEditor.java:237)
at
lcmcore.userinterface.LCMAppMainFrame.demetrixMenuIte
mActionPerformed(LCMAppMainFrame.java:1053)
at
lcmcore.userinterface.LCMAppMainFrame.actionPerfor
med(LCMAppMainFrame.java:369)
at
javax.swing.AbstractButton.fireActionPerformed
(Unknown Source)
at
javax.swing.AbstractButton$ForwardActionEvents.actionP
erformed(Unknown Source)
at
javax.swing.DefaultButtonModel.fireActionPerformed
(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed
(Unknown Source)
at javax.swing.AbstractButton.doClick
(Unknown Source)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown
Source)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandl
er.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent
(Unknown Source)
at java.awt.Component.processEvent(Unknown
Source)
at java.awt.Container.processEvent(Unknown
Source)
at java.awt.Component.dispatchEventImpl
(Unknown Source)
at java.awt.Container.dispatchEventImpl
(Unknown Source)
at java.awt.Component.dispatchEvent
(Unknown Source)
at
java.awt.LightweightDispatcher.retargetMouseEvent
(Unknown Source)
at
java.awt.LightweightDispatcher.processMouseEvent
(Unknown Source)
at
java.awt.LightweightDispatcher.dispatchEvent(Unknown
Source)
at java.awt.Container.dispatchEventImpl
(Unknown Source)
at java.awt.Window.dispatchEventImpl
(Unknown Source)
at java.awt.Component.dispatchEvent
(Unknown Source)
at java.awt.EventQueue.dispatchEvent
(Unknown Source)
at
java.awt.EventDispatchThread.pumpOneEventForHierarch
y(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy
(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents
(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents
(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown
Source)
testStateOfCreateTaskSubGraphMenuItem
public void testStateOfCreateTaskSubGraphMenuItem()
testAttachingToCurrentProcessChainSingleton
public void testAttachingToCurrentProcessChainSingleton()
testCreationOfNewProcessChain
public void testCreationOfNewProcessChain()
testStateOfDeleteMenuItem
public void testStateOfDeleteMenuItem()
testConstructor
public void testConstructor()
testSettingOfLayoutController
public void testSettingOfLayoutController()