svn commit: r13535 - trunk/tests/org/argouml/model/TestModel.java

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: tfmorris
Date: 2007-09-11 00:03:03-0700
New Revision: 13535

Modified:
   trunk/tests/org/argouml/model/TestModel.java

Log:
Fix failing test.  Allow java.lang.Object as a return type for methods to support new Command infrastructure.

Modified: trunk/tests/org/argouml/model/TestModel.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/tests/org/argouml/model/TestModel.java?view=diff&rev=13535&p1=trunk/tests/org/argouml/model/TestModel.java&p2=trunk/tests/org/argouml/model/TestModel.java&r1=13534&r2=13535
==============================================================================
--- trunk/tests/org/argouml/model/TestModel.java	(original)
+++ trunk/tests/org/argouml/model/TestModel.java	2007-09-11 00:03:03-0700
@@ -116,6 +116,11 @@
             return;
         }
 
+        // Handle methods which return opaque objects
+        if (factoryIF.getName().equals("java.lang.Object")) {
+            return;
+        }
+        
         assertTrue("The return type from " + savedMethod
                 + " must be an interface.",
                 factoryIF.isInterface());
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.