Package com.google.enterprise.connector.database

Examples of com.google.enterprise.connector.database.FakeDataSource


  }

  /** Test broken databaseAccess. */
  public void testBadDatabaseAccess() throws Exception {
    cpsFactory = new ConnectorPersistentStoreFactory(
        new JdbcDatabase(new FakeDataSource("Fake")));

    fromDirectoryTest("fred",
        "testdata/connectorInstanceTests/default",
        "testdata/connectorTypeTests/default/connectorType.xml",
        SQLException.class, "Fake JDBC DataSource has not been configured.");
View Full Code Here


   * Test FakeDataSource. This will produce a disabled JdbcDatabase.
   * Trying to create a ConnectorPersistentStore based upon a disabled
   * database should throw a SQLException.
   */
  public void testFakeDataSource() throws Exception {
    JdbcDatabase database = new JdbcDatabase(new FakeDataSource("Fake"));
    ConnectorPersistentStoreFactory factory =
        new ConnectorPersistentStoreFactory(database);

    try {
      ConnectorPersistentStore cpStore =
View Full Code Here

TOP

Related Classes of com.google.enterprise.connector.database.FakeDataSource

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.