This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'org.flywaydb.flyway' | |
id 'nu.studer.jooq' | |
id 'com.avast.gradle.docker-compose' | |
} | |
configurations { | |
flywayMigration | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import TimeSeriesChart from "../components/time-series-chart/TimeSeriesChart.vue"; | |
// import additional components here | |
export { | |
TimeSeriesChart | |
// add additional components here | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequiredArgsConstructor | |
@Component | |
class AccountPersistenceAdapter implements | |
LoadAccountPort, | |
UpdateAccountStatePort { | |
private final AccountRepository accountRepository; | |
private final ActivityRepository activityRepository; | |
private final AccountMapper accountMapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequiredArgsConstructor | |
@Component | |
class AccountPersistenceAdapter implements | |
LoadAccountPort, | |
UpdateAccountStatePort { | |
private final AccountRepository accountRepository; | |
private final ActivityRepository activityRepository; | |
private final AccountMapper accountMapper; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package buckpal.domain; | |
@AllArgsConstructor(access = AccessLevel.PRIVATE) | |
public class Account { | |
@Getter private final AccountId id; | |
@Getter private final ActivityWindow activityWindow; | |
private final Money baselineBalance; | |
public static Account withoutId( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConnectionCheckingTest { | |
private ConnectionChecker connectionChecker = | |
new ConnectionChecker("http://my.integration.system"); | |
@Test | |
public void testOnlyWhenConnected() { | |
assumeTrue(connectionChecker.connect()); | |
... // your test steps | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@AssumeConnection(uri = "http://my.integration.system") | |
public class ConnectionCheckingJunit5Test { | |
@Test | |
public void testOnlyWhenConnected() { | |
... | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConnectionCheckingJunit4Test { | |
@ClassRule | |
public static AssumingConnection assumingConnection = | |
new AssumingConnection(new ConnectionChecker("http://my.integration.system")); | |
@Test | |
public void testOnlyWhenConnected() { | |
... | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ConnectionChecker { | |
private String uri; | |
public ConnectionChecker(String uri){ | |
this.uri = uri; | |
} | |
public boolean connect() { | |
... // try to connect to the uri | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class AssumingConnection implements TestRule { | |
private ConnectionChecker checker; | |
public AssumingConnection(ConnectionChecker checker) { | |
this.checker = checker; | |
} | |
@Override | |
public Statement apply(Statement base, Description description) { |
NewerOlder