Author: mvw
Date: 2008-05-12 13:02:52-0700
New Revision: 14712
Modified:
trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java
Log:
Improving test coverage a little.
Modified: trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java?view=diff&rev=14712&p1=trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java&p2=trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java&r1=14711&r2=14712
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java (original)
+++ trunk/src/argouml-app/tests/org/argouml/notation/providers/uml/TestCallStateNotationUml.java 2008-05-12 13:02:52-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 2006-2007 The Regents of the University of California. All
+// Copyright (c) 2006-2008 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
@@ -115,7 +115,18 @@
assertEquals("Notation not correctly generated", "myOper\n(ClassA)",
notationStr);
}
-
+
+ /**
+ * Test if the string for an unnamed class and unnamed operation is correct.
+ */
+ public void testStringGenerationNoClassNameNoOperName() {
+ setUp2();
+ Model.getCoreHelper().setName(aOper, "");
+ CallStateNotationUml notation = new CallStateNotationUml(aCallState);
+ String notationStr = notation.toString(aCallState, null);
+ assertEquals("Notation not correctly generated", "", notationStr);
+ }
+
/**
* Test generating the modelelements from a string, and then
* re-creating the string from the modelelements.
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.