Package org.hivedb

Source Code of org.hivedb.TestGlobalSchema

package org.hivedb;

import org.hivedb.configuration.HiveConfigurationSchema;
import org.hivedb.util.database.test.H2TestCase;
import org.junit.Test;

import java.util.Arrays;
import java.util.Collection;

public class TestGlobalSchema extends H2TestCase {

  private static final String TEST_DB = "testDb";

  /**
   * Execute all CREATE TABLE statements for global Hive schema.  Assume
   * that no Exceptions means the create was successful.
   *
   * @throws Exception
   */
  @Test
  public void testInstallDerby() throws Exception {
    HiveConfigurationSchema schema = new HiveConfigurationSchema(getConnectString(TEST_DB));
    schema.install();
  }
 
  @Override
  public Collection<String> getDatabaseNames() {
    return Arrays.asList(new String[]{TEST_DB});
  }
}
TOP

Related Classes of org.hivedb.TestGlobalSchema

TOP
Copyright © 2018 www.massapi.com. 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.