Skip to content

Commit

Permalink
Merge pull request #577 from alphagov/bau-consolidate-search-payment-…
Browse files Browse the repository at this point in the history
…pact-2

bau: Remove unused state
  • Loading branch information
oswaldquek authored Feb 7, 2020
2 parents d9964b5 + ec482ac commit 20cd182
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions src/test/java/uk/gov/pay/ledger/pact/ContractTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,27 +67,6 @@ public void aPaymentTransactionExists(Map<String, String> params) {
.insert(app.getJdbi());
}

@State("a transaction with created state exist")
public void createTransactionWithCardDetails(Map<String, String> params) {
String transactionExternalId = params.get("transaction_external_id");
String gatewayAccountId = params.get("gateway_account_id");

aTransactionFixture()
.withExternalId(transactionExternalId)
.withGatewayAccountId(gatewayAccountId)
.withAmount(1000L)
.withReference("aReference")
.withDescription("Test description")
.withState(TransactionState.CREATED)
.withTransactionType(TransactionType.PAYMENT.name())
.withReturnUrl("https://example.org")
.withCardBrand(null)
.withDefaultCardDetails()
.withDefaultTransactionDetails()
.withCreatedDate(ZonedDateTime.parse("2018-09-22T10:13:16.067Z"))
.insert(app.getJdbi());
}

@State("a refund transaction for a transaction exists")
public void createRefundTransactionForATransaction(Map<String, String> params) {
String transactionExternalId = params.get("transaction_external_id");
Expand Down

0 comments on commit 20cd182

Please sign in to comment.