mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Removed methods that are no longer needed for Java 6, moved the remaining method into the utils directory.
29 lines
577 B
Java
29 lines
577 B
Java
package org.briarproject;
|
|
|
|
import com.google.inject.AbstractModule;
|
|
|
|
import org.briarproject.api.db.DatabaseConfig;
|
|
|
|
import java.io.File;
|
|
|
|
public class TestDatabaseModule extends AbstractModule {
|
|
|
|
private final DatabaseConfig config;
|
|
|
|
public TestDatabaseModule() {
|
|
this(new File("."), Long.MAX_VALUE);
|
|
}
|
|
|
|
public TestDatabaseModule(File dir) {
|
|
this(dir, Long.MAX_VALUE);
|
|
}
|
|
|
|
public TestDatabaseModule(File dir, long maxSize) {
|
|
this.config = new TestDatabaseConfig(dir, maxSize);
|
|
}
|
|
|
|
protected void configure() {
|
|
bind(DatabaseConfig.class).toInstance(config);
|
|
}
|
|
}
|