Author: tfmorris
Date: 2010-04-13 10:01:49-0700
New Revision: 18249

Modified:
   trunk/src/argouml-app/tests/org/argouml/uml/TestStereotypeUtility.java

Log:
Add comment to test.  Reset profiles on teardown.

Modified: trunk/src/argouml-app/tests/org/argouml/uml/TestStereotypeUtility.java
Url: 
http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/uml/TestStereotypeUtility.java?view=diff&pathrev=18249&r1=18248&r2=18249
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/uml/TestStereotypeUtility.java      
(original)
+++ trunk/src/argouml-app/tests/org/argouml/uml/TestStereotypeUtility.java      
2010-04-13 10:01:49-0700
@@ -18,6 +18,8 @@
 import java.util.List;
 import java.util.Set;
 
+import junit.framework.TestCase;
+
 import org.argouml.kernel.Project;
 import org.argouml.kernel.ProjectManager;
 import org.argouml.model.InitializeModel;
@@ -27,8 +29,6 @@
 import org.argouml.profile.UserDefinedProfile;
 import org.argouml.profile.init.InitProfileSubsystem;
 
-import junit.framework.TestCase;
-
 /**
  * Integration tests for {...@link StereotypeUtility} class.
  *
@@ -53,6 +53,7 @@
         if (proj != null) {
             ProjectManager.getManager().removeProject(proj);
         }
+        ProfileFacade.reset();
         super.tearDown();
     }
 
@@ -96,6 +97,7 @@
             profileStereotype);
         Model.getCoreHelper().addStereotype(aClass, profileStereotype);
         // FIXME: fails here.
+        // The current behavior appears intentional (ie the test is wrong) - 
tfm
 //        assertNull("The profile stereotype named \""
 //            + ProfileMother.STEREOTYPE_NAME_ST + "\" shouldn't be found.",
 //            findModelElementFromNamespace(

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=2581025

To unsubscribe from this discussion, e-mail: 
[[email protected]].

Reply via email to