net.java.ao.test.jdbc.DerbyEmbedded Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activeobjects-test Show documentation
Show all versions of activeobjects-test Show documentation
This is a library for Active Objects users to depend on for their own testing.
The newest version!
package net.java.ao.test.jdbc;
public class DerbyEmbedded extends AbstractJdbcConfiguration {
public static final String DEFAULT_URL = "jdbc:derby:memory:ao_test;create=true";
public static final String DEFAULT_USER = "sa";
public static final String DEFAULT_PASSWORD = "password";
public DerbyEmbedded() {
super(DEFAULT_URL, DEFAULT_USER, DEFAULT_PASSWORD, null);
}
public DerbyEmbedded(String url, String username, String password, String schema) {
super(url, username, password, schema);
}
@Override
protected String getDefaultSchema() {
return null;
}
@Override
protected String getDefaultUrl() {
return DEFAULT_URL;
}
@Override
protected String getDefaultUsername() {
return DEFAULT_USER;
}
@Override
protected String getDefaultPassword() {
return DEFAULT_PASSWORD;
}
}