svn commit: r12920 - trunk/tests/org/argouml/cognitive/TestCritic.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: linus
Date: 2007-06-28 15:10:30-0700
New Revision: 12920

Modified:
   trunk/tests/org/argouml/cognitive/TestCritic.java

Log:
Deprecated the arg handling in the critics.

Modified: trunk/tests/org/argouml/cognitive/TestCritic.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/cognitive/TestCritic.java?view=diff&rev=12920&p1=trunk/tests/org/argouml/cognitive/TestCritic.java&p2=trunk/tests/org/argouml/cognitive/TestCritic.java&r1=12919&r2=12920
==============================================================================
--- trunk/tests/org/argouml/cognitive/TestCritic.java	(original)
+++ trunk/tests/org/argouml/cognitive/TestCritic.java	2007-06-28 15:10:30-0700
@@ -24,10 +24,6 @@
 
 package org.argouml.cognitive;
 
-import java.util.Hashtable;
-
-import org.argouml.cognitive.Critic;
-
 import junit.framework.TestCase;
 
 /**
@@ -46,12 +42,16 @@
         cr = new Critic();
     }
 
-    public void testArgs() {
-        Hashtable<String, Object> t = new Hashtable<String, Object>();
-        t.put("threshold", new Integer(5));
-        t.put("param1", "XYZ");
-        cr.setArgs(t);
-        assertSame(t, cr.getArgs());
+    /**
+     * Test some basic functions.
+     */
+    public void testBasics() {
+        assertFalse(cr.predicate(null, null));
+
+        assertTrue(cr.isActive());
+        cr.beInactive();
+        assertFalse(cr.isActive());
+        cr.beActive();
+        assertTrue(cr.isActive());
     }
-
 }
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.