From: <lh...@us...> - 2008-11-13 18:44:48
|
Revision: 89 http://tmapi.svn.sourceforge.net/tmapi/?rev=89&view=rev Author: lheuer Date: 2008-11-13 18:44:41 +0000 (Thu, 13 Nov 2008) Log Message: ----------- - Illegal occurrence creation catches the ModelConstraintException instead of general Exception Detected by Stefan Kesberg, thanks Modified Paths: -------------- trunk/src/test/java/org/tmapi/core/TestTopic.java Modified: trunk/src/test/java/org/tmapi/core/TestTopic.java =================================================================== --- trunk/src/test/java/org/tmapi/core/TestTopic.java 2008-11-12 13:28:22 UTC (rev 88) +++ trunk/src/test/java/org/tmapi/core/TestTopic.java 2008-11-13 18:44:41 UTC (rev 89) @@ -483,7 +483,7 @@ topic.createOccurrence(createTopic(), (String)null); fail("createOccurrence(topic, (String)null) is illegal"); } - catch (Exception ex) { + catch (ModelConstraintException ex) { // noop. } } @@ -494,7 +494,7 @@ topic.createOccurrence(createTopic(), (Locator)null); fail("createOccurrence(topic, (Locator)null) is illegal"); } - catch (Exception ex) { + catch (ModelConstraintException ex) { // noop. } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |