Package com.google.enterprise.connector.persist

Examples of com.google.enterprise.connector.persist.MockPersistentStore


  public ChangeDetectorTest() {
  }

  @Override
  public void setUp() {
    store = new MockPersistentStore();
    listener = new ExceptionalChangeListener();
    detector = new ChangeDetectorImpl(store, listener);

    expectedChanges = new ArrayList<String>();
  }
View Full Code Here


      + "</ConnectorInstances>\n";


  /** Test ExportConnectors.toXml(). */
  public void testToXml() throws Exception {
    PersistentStore pstore = new MockPersistentStore(true);
    addConnector(pstore, "connector-01", "red", null);
    addConnector(pstore, "connector-02", "blue", null);

    ImportExportConnectorList connectors =
        new ExportConnectors(pstore, null).getConnectors();
View Full Code Here

    assertEquals(EXPECTED_XML, exportXml);
  }

  /** Test that passwords are not include in clear text in the generated XML. */
  public void testEncryptedPasswords() throws Exception {
    PersistentStore pstore = new MockPersistentStore();
    addConnector(pstore, "connector-01", "red", "pwd");

    ImportExportConnectorList connectors =
        new ExportConnectors(pstore, null).getConnectors();
    String exportXml = asXmlString(connectors);
View Full Code Here

  private final PersistentStore persistentStore;
  private final ThreadPool threadPool;
  private final TraversalContext traversalContext;

  public MockInstantiator(ThreadPool threadPool) {
    this(new MockPersistentStore(), threadPool);
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.persist.MockPersistentStore

Copyright © 2018 www.massapicom. 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.