svn commit: r13749 - trunk/tests/org/argouml/model/TestModelManagementHelper.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-11-11 01:08:02-0800
New Revision: 13749

Modified:
   trunk/tests/org/argouml/model/TestModelManagementHelper.java

Log:
Issue 4869 - Namespace test incorrectly says an element is part of its own namespace.

Modified: trunk/tests/org/argouml/model/TestModelManagementHelper.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/model/TestModelManagementHelper.java?view=diff&rev=13749&p1=trunk/tests/org/argouml/model/TestModelManagementHelper.java&p2=trunk/tests/org/argouml/model/TestModelManagementHelper.java&r1=13748&r2=13749
==============================================================================
--- trunk/tests/org/argouml/model/TestModelManagementHelper.java	(original)
+++ trunk/tests/org/argouml/model/TestModelManagementHelper.java	2007-11-11 01:08:02-0800
@@ -124,7 +124,7 @@
      * Test getAllModelElementsOfKind() to make sure that it doesn't
      * return elements which are not in the requested namespace.
      */
-    public void testGetAllModelElementsOfKindNamespaceContraint() {
+    public void testGetAllModelElementsOfKindNamespaceConstraint() {
         setUpTestsOfTagDefinitionContainedInStereotype();
         Model.getCoreHelper().addStereotype(theClass, theStereotype);
         Collection elements = Model.getModelManagementHelper()
@@ -134,6 +134,9 @@
         elements = Model.getModelManagementHelper().getAllModelElementsOfKind(
                 theBadPackage, Model.getMetaTypes().getUMLClass());
         assertTrue("Elements not in namespace returned", elements.isEmpty());
+        elements = Model.getModelManagementHelper().getAllModelElementsOfKind(
+                theBadPackage, Model.getMetaTypes().getPackage());
+        assertTrue("Elements not in namespace returned", elements.isEmpty());
     }
     
     /**
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.