svn commit: r17041 - trunk/src/argouml-app/tests/org/argouml/cognitive/TestToDoItem.java

Linus Tolke <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2009-04-05 06:06:25-0700
New Revision: 17041

Modified:
   trunk/src/argouml-app/tests/org/argouml/cognitive/TestToDoItem.java

Log:
Fixed the test after having removed deprecated methods from the Cognitive subsystem.

Modified: trunk/src/argouml-app/tests/org/argouml/cognitive/TestToDoItem.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/cognitive/TestToDoItem.java?view=diff&pathrev=17041&r1=17040&r2=17041
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/cognitive/TestToDoItem.java	(original)
+++ trunk/src/argouml-app/tests/org/argouml/cognitive/TestToDoItem.java	2009-04-05 06:06:25-0700
@@ -57,39 +57,10 @@
                 moreInfo);
 
         // test that properties were correctly initialized by the constructor
-        assertTrue("ToDoItem.getHeadline() incorrect after initialized"
-                + " constructor", headline == item.getHeadline());
-        assertTrue("ToDoItem.getDescription() incorrect after initialized by"
-                + " constructor", description == item.getDescription());
-        assertTrue("ToDoItem.getPriority() incorrect after initialized by"
-                + " constructor", priority == item.getPriority());
-        assertTrue("ToDoItem.getMoreInfoURL() incorrect after initialized by"
-                + " constructor", moreInfo == item.getMoreInfoURL());
-        assertTrue(
-                "((Critic)ToDoItem.getPoster()).getHeadline() incorrect after "
-                        + "initialized by constructor",
-                headline == ((Critic) item.getPoster()).getHeadline());
-                
-        // reset the values to a different value
-        priority = ToDoItem.LOW_PRIORITY;
-        headline += " - Set Test";
-        description += " - Set Test";
-        moreInfo += "/settest.htm";             
-
-        // test that properties were correctly set by the setters
-        assertTrue(
-                "ToDoItem.getHeadline() incorrect after ToDoItem.setHeadline()",
-                headline == item.getHeadline());
-        assertTrue(
-                "ToDoItem.getDescription() incorrect after "
-                + "ToDoItem.setDescription()",
-                description == item.getDescription());
-        assertTrue(
-                "ToDoItem.getPriority() incorrect after ToDoItem.setPriority()",
-                priority == item.getPriority());
-        assertTrue(
-                "ToDoItem.getMoreInfoURL() incorrect after "
-                + "ToDoItem.setMoreInfoURL()",
-                moreInfo == item.getMoreInfoURL());
+        assertEquals(headline, item.getHeadline());
+        assertEquals(description, item.getDescription());
+        assertEquals(priority, item.getPriority());
+        assertEquals(moreInfo, item.getMoreInfoURL());
+        assertEquals(headline, ((Critic) item.getPoster()).getHeadline());
     }
 }

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

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.