From 505e3dfc41d3191cf48fc201b2dac636ca9ca59a Mon Sep 17 00:00:00 2001 From: Eduardo Pedroni Date: Sat, 26 Mar 2016 22:07:50 +0100 Subject: Tests should pass now --- test/eu/equalparts/cardbase/CardbaseTest.java | 2 +- .../eu/equalparts/cardbase/cardstorage/StandaloneCardContainerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test/eu/equalparts/cardbase') diff --git a/test/eu/equalparts/cardbase/CardbaseTest.java b/test/eu/equalparts/cardbase/CardbaseTest.java index c9576ce..47ad027 100644 --- a/test/eu/equalparts/cardbase/CardbaseTest.java +++ b/test/eu/equalparts/cardbase/CardbaseTest.java @@ -113,7 +113,7 @@ public class CardbaseTest { public void loadFileHasWrongStructure() throws Exception { File wrongStructure = tempFolder.newFile("wrongStructure.json"); try (FileWriter writer = new FileWriter(wrongStructure)) { - writer.write("{\"cards\":\"content\",\"collection\":50,\"decks\":{\"subfield\":10}}"); + writer.write("{\"cardData\":\"content\",\"cardReferences\":50,\"decks\":{\"subfield\":10}}"); } exception.expect(JsonMappingException.class); diff --git a/test/eu/equalparts/cardbase/cardstorage/StandaloneCardContainerTest.java b/test/eu/equalparts/cardbase/cardstorage/StandaloneCardContainerTest.java index bd1bbfb..bb6edc1 100644 --- a/test/eu/equalparts/cardbase/cardstorage/StandaloneCardContainerTest.java +++ b/test/eu/equalparts/cardbase/cardstorage/StandaloneCardContainerTest.java @@ -106,7 +106,7 @@ public class StandaloneCardContainerTest { uut.addCard(testCard, 3); uut.removeCard(testCard, 5); - + assertNull("Card is not missing from container.", uut.getCard(testCard.setCode, testCard.number)); } -- cgit v1.2.3