svn commit: r17131 - trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java

Thomas Neustupny <[email protected]>
Newsgroups gmane.comp.lang.uml.argouml.cvs
Message-ID <[email protected]>
Author: thn
Date: 2009-04-24 23:49:16-0700
New Revision: 17131

Modified:
   trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java

Log:
fix failing tests for methods that throw NotImplementedException

Modified: trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java
Url: http://argouml.tigris.org/source/browse/argouml/trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java?view=diff&pathrev=17131&r1=17130&r2=17131
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java	(original)
+++ trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java	2009-04-24 23:49:16-0700
@@ -163,6 +163,10 @@
             fail("Test failed for " + methodToTest.toString()
                     + " because of: "
                     + e.getTargetException());
+        } catch (NotImplementedException e) {
+            // This exception is used to make clear that there should be no
+            // implementation (e.g. due to the UML version), so it's ok.
+            return;
         } catch (Exception e) {
             fail("Test failed for " + methodToTest.toString()
                     + " because of: " + e.toString());

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

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.