Пример #1
0
  /**
   * Test of both getSupportLevel methods, of class
   * org.mmbase.storage.search.implementation.database.ChainedSqlHandler.
   */
  public void testGetSupportLevel() throws Exception {
    // test method getSupport(int,SearchQuery)
    assertTrue(
        instance.getSupportLevel(SearchQueryHandler.FEATURE_MAX_NUMBER, query)
            == TEST_SUPPORT_LEVEL);

    // test method getSupport(Constraint,SearchQuery)
    Constraint constraint = new BasicCompositeConstraint(CompositeConstraint.LOGICAL_AND);
    assertTrue(instance.getSupportLevel(constraint, query) == TEST_SUPPORT_LEVEL);
  }