svn commit: r14557 - 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: mvw
Date: 2008-04-30 22:32:33-0700
New Revision: 14557

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

Log:
Increase test coverage (again).

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&rev=14557&p1=trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java&p2=trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestActionStateNotationUml.java&r1=14556&r2=14557
==============================================================================
--- 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	2008-04-30 22:32:33-0700
@@ -98,7 +98,21 @@
         ActionStateNotationUml notation = 
             new ActionStateNotationUml(aActionState);
         String notationStr = notation.toString(aActionState, null);
-        assertEquals("Notation not correctly generated", "", notationStr);
+        assertEquals("Notation not correctly generated "
+        		+ "(for absent entry-action)", "", notationStr);
+    }
+    
+    /**
+     * Test if the string for an absent expression is correct.
+     */
+    public void testStringGenerationNoScript() {
+        aUninterpretedAction = Model.getCommonBehaviorFactory()
+            .buildUninterpretedAction(aActionState);
+        ActionStateNotationUml notation = 
+            new ActionStateNotationUml(aActionState);
+        String notationStr = notation.toString(aActionState, null);
+        assertEquals("Notation not correctly generated "
+        		+ "(for absent script)", "", notationStr);
     }
 
     /**
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.