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

[email protected]
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: mvw
Date: 2007-06-24 05:54:39-0700
New Revision: 12905

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

Log:
Shorten the Main.main() method. 

There is no reason the org.argouml.application package should know about a ModelImplementation; 

now it is just a string we hand to the org.argouml.model subsystem.

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=12905&p1=trunk/tests/org/argouml/model/TestModel.java&p2=trunk/tests/org/argouml/model/TestModel.java&r1=12904&r2=12905
==============================================================================
--- trunk/tests/org/argouml/model/TestModel.java	(original)
+++ trunk/tests/org/argouml/model/TestModel.java	2007-06-24 05:54:39-0700
@@ -111,6 +111,11 @@
             return;
         }
 
+        // Handling the initialise method
+        if (factoryIF.getName().equals("java.lang.Throwable")) {
+            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.