From: <lh...@us...> - 2009-06-30 16:18:22
|
Revision: 110 http://tmapi.svn.sourceforge.net/tmapi/?rev=110&view=rev Author: lheuer Date: 2009-06-30 16:18:20 +0000 (Tue, 30 Jun 2009) Log Message: ----------- Added check for topic.addType Modified Paths: -------------- trunk/src/test/java/org/tmapi/core/TestSameTopicMap.java Modified: trunk/src/test/java/org/tmapi/core/TestSameTopicMap.java =================================================================== --- trunk/src/test/java/org/tmapi/core/TestSameTopicMap.java 2009-06-30 13:53:17 UTC (rev 109) +++ trunk/src/test/java/org/tmapi/core/TestSameTopicMap.java 2009-06-30 16:18:20 UTC (rev 110) @@ -249,4 +249,14 @@ public void testVariantIllegalReifier() { _testIllegalReifier(createVariant()); } + + public void testIllegalTopicType() { + try { + createTopic().addType(_tm2.createTopic()); + fail("The type is not from the same topic map. Disallowed."); + } + catch (ModelConstraintException ex) { + // noop. + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |