svn commit: r15555 - branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile: . internal/ocl

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: maurelio1234
Date: 2008-08-12 05:04:36-0700
New Revision: 15555

Added:
   branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/internal/ocl/
      - copied from r15551, /branches/gsoc2008/work_issue5042_maurelio1234/tests/org/argouml/profile/internal/ocl/
   branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/internal/ocl/TestCrOCL.java
      - copied unchanged from r15551, /branches/gsoc2008/work_issue5042_maurelio1234/tests/org/argouml/profile/internal/ocl/TestCrOCL.java
   branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/internal/ocl/TestCrOCL2.java
      - copied unchanged from r15551, /branches/gsoc2008/work_issue5042_maurelio1234/tests/org/argouml/profile/internal/ocl/TestCrOCL2.java
   branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/internal/ocl/TestDefaultOclEvaluator.java
      - copied unchanged from r15551, /branches/gsoc2008/work_issue5042_maurelio1234/tests/org/argouml/profile/internal/ocl/TestDefaultOclEvaluator.java
   branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/internal/ocl/TestOclInterpreter.java
      - copied unchanged from r15551, /branches/gsoc2008/work_issue5042_maurelio1234/tests/org/argouml/profile/internal/ocl/TestOclInterpreter.java
Modified:
   branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/TestUserDefinedProfile.java

Log:
commiting merged tests



Modified: branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/TestUserDefinedProfile.java
Url: http://argouml.tigris.org/source/browse/argouml/branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/TestUserDefinedProfile.java?view=diff&rev=15555&p1=branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/TestUserDefinedProfile.java&p2=branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/TestUserDefinedProfile.java&r1=15554&r2=15555
==============================================================================
--- branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/TestUserDefinedProfile.java	(original)
+++ branches/gsoc2008/work_issue5042_merged15552_maurelio1234/tests/org/argouml/profile/TestUserDefinedProfile.java	2008-08-12 05:04:36-0700
@@ -34,6 +34,7 @@
 import org.argouml.cognitive.Critic;
 import org.argouml.model.InitializeModel;
 import org.argouml.profile.internal.ProfileManagerImpl;
+import org.argouml.profile.internal.ocl.CrOCL;
 
 /**
  * Some basic tests for the {@link UserDefinedProfile} class.
@@ -93,14 +94,18 @@
         File profileFile = new File(testDir, "testLoadingConstructor.xmi");
         profileMother.saveProfileModel(model, profileFile);
 
+        CrOCL critic = new CrOCL("context Class inv: 3 > 2", null, null, null,
+                null, null, null);
         Set<Critic> critics = new HashSet<Critic>();
         Set<String> profiles = new HashSet<String>();
         profiles.add(pm.getUMLProfile().getProfileIdentifier());
+        critics.add(critic);
 
         Profile profile = new UserDefinedProfile("displayName", profileFile
                 .toURI().toURL(), critics, profiles);
 
         assertEquals(profile.getDisplayName(), "displayName");
         assertTrue(profile.getDependencies().contains(pm.getUMLProfile()));
+        assertTrue(profile.getCritics().contains(critic));
     }
 }
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.