svn commit: r18969 - trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java

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

Modified:
   trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java

Log:
Remove the reference to project in this test case.

Modified: trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java?view=diff&pathrev=18969&r1=18968&r2=18969
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java	(original)
+++ trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java	2011-01-18 10:24:09-0800
@@ -79,8 +79,6 @@
         new InitProfileSubsystem().init();
         Object model =
             Model.getModelManagementFactory().createModel();
-        Project p = ProjectManager.getManager().getCurrentProject();
-        p.addModel(model);
         aClass = Model.getCoreFactory().buildClass(model);
         aStateMachine =
             Model.getStateMachinesFactory().buildStateMachine(aClass);
@@ -95,8 +93,6 @@
     
     @Override
     protected void tearDown() throws Exception {
-        ProjectManager.getManager().removeProject(
-                ProjectManager.getManager().getCurrentProject());
         ProfileFacade.reset();
         super.tearDown();
     }
@@ -188,8 +184,7 @@
     public void testActionType() {
         ActionStateNotationUml notation = 
             new ActionStateNotationUml(aActionState);
-        Project p = ProjectManager.getManager().getCurrentProject();
-        Object returnType = p.getDefaultReturnType();
+        Object returnType = null;
         aOper = Model.getCoreFactory().buildOperation2(aClass, returnType,
             "testUA");
         notation.parse(aActionState, "testUA()");

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

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.