Package com.google.enterprise.connector.spi

Examples of com.google.enterprise.connector.spi.MockConnectorType


    connectorMap.put(connectorName, cc);
  }

  @Override
  public ConnectorType getConnectorType(String connectorTypeName) {
    return new MockConnectorType(connectorTypeName);
  }
View Full Code Here


  @Override
  public ConfigureResponse getConfigFormForConnector(String connectorName,
      String connectorTypeName, Locale locale) throws ConnectorNotFoundException
  {
    Configuration config = getConnectorConfiguration(connectorName);
    return new MockConnectorType(connectorTypeName)
        .getPopulatedConfigForm((config == null) ? null : config.getMap(),
                                locale);
  }
View Full Code Here

  private ConnectorCoordinatorImpl createMockConnector(String name,
      String connectorInstancePrototype)
      throws JSONException, InstantiatorException, ConnectorNotFoundException,
      ConnectorExistsException, ConnectorTypeNotFoundException {
    // Inject our test ConnectorType into the TypeMap.
    MockConnectorType type = new MockConnectorType(name);
    TypeInfo typeInfo = new TypeInfo(type.toString(), type, null, null);
    getTypeMap().addTypeInfo(typeInfo);

    final ConnectorCoordinatorImpl instance = newCoordinator(name);
    assertFalse(instance.exists());

    Configuration config = new Configuration(type.toString(),
        new HashMap<String, String>(), connectorInstancePrototype);

    updateConnectorTest(instance, config, false);
    return instance;
  }
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.spi.MockConnectorType

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.