Package com.google.enterprise.connector.otex.client.mock

Examples of com.google.enterprise.connector.otex.client.mock.MockClientFactory


        + "values(4104, 2002)",
        "insert into KDual values(104 /* does not matter */)",
        "insert into WebNodes(DataID, PermID, MimeType) "
        + "values(42, 0, 'text/xml')");

    connector = new LivelinkConnector(new MockClientFactory());
    connector.setServer(System.getProperty("connector.server"));
    connector.setPort(System.getProperty("connector.port"));
    connector.setUsername(System.getProperty("connector.username"));
    connector.setPassword(System.getProperty("connector.password"));

View Full Code Here


   * A simple test that verifies that at least one of the connecion
   * properties is being correctly assigned in the client factory.
   */
  public void testServer() throws RepositoryException {
    connector.login();
    MockClientFactory clientFactory =
        (MockClientFactory) connector.getClientFactory();
    Map<String, Object> values = clientFactory.getValues();
    assertTrue(values.toString(), values.containsKey("setServer"));
    assertEquals(System.getProperty("connector.server"),
        values.get("setServer"));
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.otex.client.mock.MockClientFactory

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.