svn commit: r18971 - trunk/src/argouml-app/tests/org/argouml/model/TestStateMachinesFactory.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2011-01-18 10:49:39-0800
New Revision: 18971

Modified:
   trunk/src/argouml-app/tests/org/argouml/model/TestStateMachinesFactory.java

Log:
Fixed test case to work without the project.

Modified: trunk/src/argouml-app/tests/org/argouml/model/TestStateMachinesFactory.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/model/TestStateMachinesFactory.java?view=diff&pathrev=18971&r1=18970&r2=18971
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/model/TestStateMachinesFactory.java	(original)
+++ trunk/src/argouml-app/tests/org/argouml/model/TestStateMachinesFactory.java	2011-01-18 10:49:39-0800
@@ -44,8 +44,6 @@
 
 import junit.framework.TestCase;
 
-import org.argouml.kernel.Project;
-import org.argouml.kernel.ProjectManager;
 import org.argouml.profile.init.InitProfileSubsystem;
 
 /**
@@ -137,11 +135,10 @@
      */
     public void testDeleteTransition()  {
         new InitProfileSubsystem().init();
-        Project p = ProjectManager.getManager().getCurrentProject();
         Object model =
             Model.getModelManagementFactory().createModel();
         aClass = Model.getCoreFactory().buildClass(model);
-        Object returnType = p.getDefaultReturnType();
+        Object returnType = null;
         Model.getCoreFactory().buildOperation2(aClass, returnType, "myOper");
         aStateMachine =
             Model.getStateMachinesFactory().buildStateMachine(aClass);

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

To unsubscribe from this discussion, e-mail: [[email protected]].
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.