Author: schor
Date: Wed Sep  1 14:53:41 2010
New Revision: 991558

URL: http://svn.apache.org/viewvc?rev=991558&view=rev
Log:
[UIMA-1860] conform test case for corner cases where type / feature in result 
spec but not in type system.

Modified:
    
uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/analysis_engine/impl/ResultSpecification_implTest.java

Modified: 
uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/analysis_engine/impl/ResultSpecification_implTest.java
URL: 
http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/analysis_engine/impl/ResultSpecification_implTest.java?rev=991558&r1=991557&r2=991558&view=diff
==============================================================================
--- 
uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/analysis_engine/impl/ResultSpecification_implTest.java
 (original)
+++ 
uima/uimaj/trunk/uimaj-core/src/test/java/org/apache/uima/analysis_engine/impl/ResultSpecification_implTest.java
 Wed Sep  1 14:53:41 2010
@@ -477,7 +477,7 @@ public class ResultSpecification_implTes
       Assert.assertFalse(rs.containsType("FakeType:FakeFeature2"));
       Assert.assertTrue(rs.containsFeature("AnotherType:AnotherFeature"));
       Assert.assertTrue(rs.containsFeature("AnotherType:YetAnotherFeature"));
-      Assert.assertFalse(rs.containsFeature("AnotherType:asdfghjkl"));
+      Assert.assertTrue(rs.containsFeature("AnotherType:asdfghjkl"));  // 
unknown features are there, if the type says allFeats
       Assert.assertFalse(rs.containsType("NotThere:FakeFeature"));
     } catch (Exception e) {
       JUnitExtension.handleException(e);
@@ -516,7 +516,7 @@ public class ResultSpecification_implTes
       Assert.assertFalse(rs.containsType("FakeType:FakeFeature2"));
       Assert.assertTrue(rs.containsFeature("AnotherType:AnotherFeature"));
       Assert.assertTrue(rs.containsFeature("AnotherType:YetAnotherFeature"));
-      Assert.assertFalse(rs.containsFeature("AnotherType:asdfghjkl"));
+      Assert.assertTrue(rs.containsFeature("AnotherType:asdfghjkl")); // 
unknown features are there if type says allfeats
       Assert.assertFalse(rs.containsType("NotThere:FakeFeature"));
       Assert.assertFalse(rs.containsFeature("NotThere:FakeFeature"));
       Assert.assertFalse(rs.containsType("SubType"));


Reply via email to