From 625e82acf6431d0952dbf3c5402c3133ce55a1d7 Mon Sep 17 00:00:00 2001 From: Everett Sochowski Date: Tue, 24 Feb 2015 15:16:18 +0100 Subject: [PATCH] Fix the per account duplicate detection test case for importing transactions --- src/test/scala/code/tesobe/ImporterTest.scala | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/scala/code/tesobe/ImporterTest.scala b/src/test/scala/code/tesobe/ImporterTest.scala index 65b0422df..f860bcbbb 100644 --- a/src/test/scala/code/tesobe/ImporterTest.scala +++ b/src/test/scala/code/tesobe/ImporterTest.scala @@ -306,6 +306,8 @@ class ImporterTest extends ServerSetup with Loggable with DefaultConnectorTestSe val t1F1Json = f1.tJson(f1.t1Value, f1.t1NewBalance, f1.t1StartDate, f1.t1EndDate) val t1F1ImportJson = f1.importJson(List.fill(2)(t1F1Json)) + val t1F2Json = f2.tJson(f1.t1Value, f1.t1NewBalance, f1.t1StartDate, f1.t1EndDate) + val t1F2ImportJson = f2.importJson(List.fill(2)(t1F2Json)) Given("Two 'identical' existing transactions at a different account") addTransactions(t1F1ImportJson, Some(secretKeyValue)) @@ -315,7 +317,7 @@ class ImporterTest extends ServerSetup with Loggable with DefaultConnectorTestSe f1TsBefore.foreach(checkF1TransactionOkay) When("We add these same 'identical' transactions to a different account") - addTransactions(t1F1ImportJson, Some(secretKeyValue)) + addTransactions(t1F2ImportJson, Some(secretKeyValue)) Then("There should be two transactions for each account") val f1TsAfter = Connector.connector.vend.getTransactions(f1.account.bankId, f1.account.accountId).get