svn commit: r13297 - branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2007-08-12 12:40:03-0700
New Revision: 13297

Modified:
   branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java

Log:
implementing profile dependencies 

solving bugs

Modified: branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java?view=diff&rev=13297&p1=branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java&p2=branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java&r1=13296&r2=13297
==============================================================================
--- branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java	(original)
+++ branches/gsoc2007/maurelio1234/tests/org/argouml/uml/profile/TestProfileConfiguration1.java	2007-08-12 12:40:03-0700
@@ -64,13 +64,13 @@
 		ProfileConfiguration pc = new ProfileConfiguration(p);

 

 		assertTrue("UML profile has not been set as the default one!", pc

-				.getDefaultProfile() instanceof ProfileUML);

+				.getProfiles().contains(ProfileUML.getInstance()));

 		assertTrue("Java formating strategy has not been "

 				+ "set as the default one!",

 				pc.getFormatingStrategy() instanceof JavaFormatingStrategy);

-		assertTrue("Java's defaulf profile formating strategy is not being "

+		assertTrue("Java's default profile formating strategy is not being "

 				+ "used as the default formating strategy!", pc

-				.getFormatingStrategy() == pc.getDefaultProfile()

+				.getFormatingStrategy() == ProfileUML.getInstance()

 				.getFormatingStrategy());

 	}

     

@@ -117,22 +117,5 @@
 		if (!pc.getProfiles().contains(pr)) {

 			pc.removeProfile(pr);

 		}

-    }    

-    /**

-	 * Tests whether the default profile cannot be removed

-	 */

-    public void testRemovingDefaultProfile() {

-    	Project p = new ProjectImpl();

-		ProfileConfiguration pc = new ProfileConfiguration(p);

-

-		Profile dp = pc.getDefaultProfile();

-		assertTrue("Default profile is not in the configuration!", pc

-				.getProfiles().contains(dp));

-		

-		pc.removeProfile(dp);

-		assertTrue("Default profile was removed from the configuration!", pc

-				.getProfiles().contains(dp));

-		assertTrue("Default profile changed!", pc.getDefaultProfile() == dp);

-    }

-    

+    }        

 }
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.