Package no.priv.garshol.duke

Examples of no.priv.garshol.duke.Database


import no.priv.garshol.duke.databases.KeyValueDatabase;

public class KeyValueDatabaseTest extends DatabaseTest {

  public Database createDatabase(Configuration config) {
    Database db = new KeyValueDatabase();
    db.setConfiguration(config);
    return db;
  }
View Full Code Here


import no.priv.garshol.duke.databases.LuceneDatabase;

public class LuceneDatabaseTest extends DatabaseTest {

  public Database createDatabase(Configuration config) {
    Database db = new LuceneDatabase();
    db.setOverwrite(true);
    db.setConfiguration(config);
    return db;
  }
View Full Code Here

  }

  @Test
  public void testDatabase() throws IOException, SAXException {
    Configuration config = ConfigLoader.load("classpath:config-database.xml");
    Database db = config.getDatabase(false);
    LuceneDatabase lucene = (LuceneDatabase) db;
    assertEquals("/tmp/ct-visma-1", lucene.getPath());
  }
View Full Code Here

import no.priv.garshol.duke.databases.InMemoryDatabase;

public class InMemoryDatabaseTest extends DatabaseTest {

  public Database createDatabase(Configuration config) {
    Database db = new InMemoryDatabase();
    db.setConfiguration(config);
    return db;
  }
View Full Code Here

TOP

Related Classes of no.priv.garshol.duke.Database

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.