svn commit: r17133 - trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java
Tom Morris <[email protected]>
| Newsgroups | gmane.comp.lang.uml.argouml.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: tfmorris
Date: 2009-04-26 12:41:04-0700
New Revision: 17133
Modified:
trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java
Log:
NotImplementedException is only expected for UML 2.x
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=17133&r1=17132&r2=17133
==============================================================================
--- trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java (original)
+++ trunk/src/argouml-app/tests/org/argouml/model/TestModelFacade3.java 2009-04-26 12:41:04-0700
@@ -1,5 +1,5 @@
// $Id$
-// Copyright (c) 2003-2007 The Regents of the University of California. All
+// Copyright (c) 2003-2009 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation without fee, and without a written
// agreement is hereby granted, provided that the above copyright notice
@@ -164,9 +164,11 @@
+ " 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;
+ // OK for UML 2.x, error for anything else
+ String version = Model.getFacade().getUmlVersion();
+ if (!version.startsWith("2.")) {
+ fail("Unexpected NotImplementedException");
+ }
} catch (Exception e) {
fail("Test failed for " + methodToTest.toString()
+ " because of: " + e.toString());
------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=5905&dsMessageId=1933421
To unsubscribe from this discussion, e-mail: [[email protected]].