Skip to content

Commit

Permalink
Created test profile for inmemory database: see eventuate-examples/ev…
Browse files Browse the repository at this point in the history
  • Loading branch information
dartartem committed Mar 25, 2021
1 parent 0edc15b commit bbeeb70
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package io.eventuate.common.quarkus.jdbc.test.configuration;

import io.quarkus.test.junit.QuarkusTestProfile;

import java.util.HashMap;
import java.util.Map;

public class EmbeddedDatabaseProfile implements QuarkusTestProfile {
@Override
public Map<String, String> getConfigOverrides() {
return new HashMap<String, String>() {{
put("eventuateDatabase", "h2");
put("quarkus.datasource.db-kind", "h2");
put("quarkus.datasource.jdbc.url", "jdbc:h2:mem:testdb");
put("quarkus.datasource.username", "sa");
put("quarkus.datasource.password", "");
}};
}
}

0 comments on commit bbeeb70

Please sign in to comment.