Author: mvw
Date: 2007-07-01 11:40:32-0700
New Revision: 12954
Modified:
trunk/tests/org/argouml/cognitive/TestItemUID.java
Log:
Make the test work with a CommentEdge, too.
It still fails with diagrams...
Modified: trunk/tests/org/argouml/cognitive/TestItemUID.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/cognitive/TestItemUID.java?view=diff&rev=12954&p1=trunk/tests/org/argouml/cognitive/TestItemUID.java&p2=trunk/tests/org/argouml/cognitive/TestItemUID.java&r1=12953&r2=12954
==============================================================================
--- trunk/tests/org/argouml/cognitive/TestItemUID.java (original)
+++ trunk/tests/org/argouml/cognitive/TestItemUID.java 2007-07-01 11:40:32-0700
@@ -26,9 +26,10 @@
// Diagrams
import junit.framework.TestCase;
-import org.argouml.model.InitializeModel;
+import org.argouml.model.InitializeModel;
import org.argouml.model.Model;
+import org.argouml.uml.CommentEdge;
import org.argouml.uml.diagram.activity.ui.FigActionState;
import org.argouml.uml.diagram.activity.ui.UMLActivityDiagram;
import org.argouml.uml.diagram.collaboration.ui.FigClassifierRole;
@@ -125,6 +126,7 @@
*/
public void testAssignIDsToObjects() {
Object testmc = Model.getCoreFactory().buildClass();
+ CommentEdge commentedge = new CommentEdge();
UMLActivityDiagram actdiag = new UMLActivityDiagram();
UMLClassDiagram classdiag = new UMLClassDiagram();
UMLCollaborationDiagram colldiag = new UMLCollaborationDiagram();
@@ -170,6 +172,7 @@
FigUseCase figusecase = new FigUseCase();
checkAssignIDToObject(testmc, true, true);
+ checkAssignIDToObject(commentedge, false, true);
checkAssignIDToObject(actdiag, true, true);
checkAssignIDToObject(classdiag, true, true);
checkAssignIDToObject(colldiag, true, true);
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.