Package com.google.enterprise.connector.persist

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


      + "</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

TOP

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

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.