Skip to content

Commit

Permalink
Dropwizard: Use config.yaml for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxon committed Sep 6, 2023
1 parent 83a513c commit 7270490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ abstract class AbstractDropwizardTest {
.withMethod("GET")
.forStatusCode(200));
static DropwizardTestSupport<DropwizardConfiguration> APP = new DropwizardTestSupport<>(DropwizardApplication.class,
ResourceHelpers.resourceFilePath("config-test.yml"),
ResourceHelpers.resourceFilePath("config.yml"),
ConfigOverrideRandomPorts.randomPorts(),
config("database.url", DB::getJdbcUrl),
config("database.user", DB::getUsername),
config("database.password", DB::getPassword),
config("database.properties.hibernate.hbm2ddl.auto", "none"),
config("exchangeClientConfig.basePath", () -> String.format("http://%s:%s/exchanges?currency=", WIREMOCK.getHost(), WIREMOCK.getMappedPort(8080)))
);

Expand Down
30 changes: 0 additions & 30 deletions dropwizard-app/src/test/resources/config-test.yml

This file was deleted.

0 comments on commit 7270490

Please sign in to comment.