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);
     }
 
     /**

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to