svn commit: r15572 - trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: euluis
Date: 2008-08-15 09:02:23-0700
New Revision: 15572

Modified:
   trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java

Log:
Fixes the failing test after changes to ProfileManagerImpl.remove that does not allow removal of UML profile.

Modified: trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java?view=diff&rev=15572&p1=trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java&p2=trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java&r1=15571&r2=15572
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java	(original)
+++ trunk/src/argouml-app/tests/org/argouml/profile/internal/TestProfileManagerImpl.java	2008-08-15 09:02:23-0700
@@ -1,5 +1,5 @@
 // $Id$
-// Copyright (c) 2007 The Regents of the University of California. All
+// Copyright (c) 2007-2008 The Regents of the University of California. All
 // Rights Reserved. Permission to use, copy, modify, and distribute this
 // software and its documentation without fee, and without a written
 // agreement is hereby granted, provided that the above copyright notice
@@ -82,7 +82,7 @@
     }
 
     /**
-     * test remove profile
+     * Test remove the base UML profile. 
      */
     public void testRemoveDefaultProfile() {
         Profile umlProfile = manager.getProfileForClass(ProfileUML.class
@@ -91,8 +91,14 @@
         assertTrue(manager.getRegisteredProfiles().contains(umlProfile));
         assertTrue(manager.getDefaultProfiles().contains(umlProfile));
         manager.removeProfile(umlProfile);
-        assertFalse(manager.getRegisteredProfiles().contains(umlProfile));
-        assertFalse(manager.getDefaultProfiles().contains(umlProfile));
+        assertTrue(manager.getRegisteredProfiles().contains(umlProfile));
+        assertTrue(manager.getDefaultProfiles().contains(umlProfile));
+    }
+    
+    /**
+     * Test register and remove a dummy profile.
+     */
+    public void testRegisterAndRemoveDummyProfile() {
         Profile testProfile = new Profile() {
 
             @Override
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.