コード例 #1
0
 /**
  * Test get fully defined ancestors.
  *
  * @throws Exception the exception
  */
 public void testGetFullyDefinedAncestors() throws Exception {
   Collection<String> definedAncestors =
       testNormalFormHierarchyProvider.getFullyDefinedAncestors(conceptId);
   assertTrue("Must have defined ancestors", definedAncestors.size() > 0);
 }
コード例 #2
0
 /**
  * Test get primitive ancestors.
  *
  * @throws Exception the exception
  */
 public void testGetPrimitiveAncestors() throws Exception {
   Collection<String> primtiveAncestors =
       testNormalFormHierarchyProvider.getPrimitiveAncestors(conceptId);
   assertTrue("Must have primitive ancestors", primtiveAncestors.size() > 0);
 }
コード例 #3
0
 /**
  * Test get proximal primitive parents.
  *
  * @throws Exception the exception
  */
 public void testGetProximalPrimitiveParents() throws Exception {
   Collection<String> proximalPrimitives =
       testNormalFormHierarchyProvider.getProximalPrimitiveParents(conceptId);
   assertTrue("Must have one proximal primitive", proximalPrimitives.size() == 1);
 }
コード例 #4
0
 /**
  * Test get primitive parents.
  *
  * @throws Exception the exception
  */
 public void testGetPrimitiveParents() throws Exception {
   Collection<String> primitiveParents =
       testNormalFormHierarchyProvider.getPrimitiveParents(conceptId);
   assertTrue("Must not have primitive parents", primitiveParents.size() == 0);
 }
コード例 #5
0
 /**
  * Test get fully defined parents.
  *
  * @throws Exception the exception
  */
 public void testGetFullyDefinedParents() throws Exception {
   Collection<String> definedParents =
       testNormalFormHierarchyProvider.getFullyDefinedParents(conceptId);
   assertTrue("Must have primitive parents", definedParents.size() > 0);
 }