Examples of DocumentFilterFactory


Examples of com.google.enterprise.connector.util.filter.DocumentFilterFactory

  public void testDocumentFilterFactoryFactoryOneFilterNoMap()
      throws Exception {
    DocumentFilterFactoryFactory factoryFactory =
        new DocumentFilterFactoryFactoryImpl(new NoopDocumentFilter(), null);
    DocumentFilterFactory factory =
        factoryFactory.getDocumentFilterFactory("test");
    assertTrue(factory instanceof NoopDocumentFilter);
  }
View Full Code Here

Examples of com.google.enterprise.connector.util.filter.DocumentFilterFactory

  public void testDocumentFilterFactoryFactoryNoFilterConnectorNotFound()
       throws Exception {
    DocumentFilterFactoryFactory factoryFactory =
        new DocumentFilterFactoryFactoryImpl(null, getCoordinatorMap());
    DocumentFilterFactory factory =
        factoryFactory.getDocumentFilterFactory("nonexistant");
    assertTrue(factory instanceof DocumentFilterChain);
    assertEquals("DocumentFilterChain: []", factory.toString());
  }
View Full Code Here

Examples of com.google.enterprise.connector.util.filter.DocumentFilterFactory

        + "<bean class=\"" + MockConnector.class.getName() + "\"/>\n"
        + BEANS_POSTFIX;

    ConnectorCoordinatorImpl instance =
        createMockConnector("no_filter", connectorInstancePrototype);
    DocumentFilterFactory factory =
        factoryFactory.getDocumentFilterFactory("no_filter");
    assertTrue(factory instanceof DocumentFilterChain);
    assertEquals("DocumentFilterChain: []", factory.toString());
  }
View Full Code Here

Examples of com.google.enterprise.connector.util.filter.DocumentFilterFactory

        + "<bean class=\"" + NoopDocumentFilter.class.getName() + "\"/>\n"
        + BEANS_POSTFIX;

    ConnectorCoordinatorImpl instance =
        createMockConnector("noop_filter", connectorInstancePrototype);
    DocumentFilterFactory factory =
        factoryFactory.getDocumentFilterFactory("noop_filter");
    assertNotNull(factory);
    assertTrue(factory instanceof NoopDocumentFilter);
  }
View Full Code Here

Examples of com.google.enterprise.connector.util.filter.DocumentFilterFactory

        + "</list></constructor-arg></bean>\n"
        + BEANS_POSTFIX;

    ConnectorCoordinatorImpl instance =
        createMockConnector("filter_in_chain", connectorInstancePrototype);
    DocumentFilterFactory factory =
        factoryFactory.getDocumentFilterFactory("filter_in_chain");

    assertNotNull(factory);
    assertTrue(factory instanceof DocumentFilterChain);
    assertEquals("DocumentFilterChain: [DocumentFilterChain: [Noop], Noop]",
                 factory.toString());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.