diff options
author | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-07-23 19:31:58 +0200 |
---|---|---|
committer | Eduardo Pedroni <e.pedroni91@gmail.com> | 2015-07-23 19:31:58 +0200 |
commit | f3ce19d1c5be34575adeaed0cf991a609ac8a10f (patch) | |
tree | 9c6d7b768de815986591b2efd47eb62ebc8fb0fd /src/eu/equalparts/cardbase/utils | |
parent | f3b507240930f721571c9da1b4985a02e0a17b6b (diff) |
Reorganised the test folder a bit more, started working on CLI tests, a bit tricky, will require refactoring
Diffstat (limited to 'src/eu/equalparts/cardbase/utils')
-rw-r--r-- | src/eu/equalparts/cardbase/utils/MTGUniverse.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/eu/equalparts/cardbase/utils/MTGUniverse.java b/src/eu/equalparts/cardbase/utils/MTGUniverse.java index 1e8efc2..7a58c1c 100644 --- a/src/eu/equalparts/cardbase/utils/MTGUniverse.java +++ b/src/eu/equalparts/cardbase/utils/MTGUniverse.java @@ -98,7 +98,7 @@ public final class MTGUniverse { if (cardSetCache.containsKey(validCode)) { requestedSet = cardSetCache.get(validCode); } - // not cached; fetch, cache and return it + // not cached; fetch and cache else { requestedSet = parseFullSet(JSON.mapper.readValue(new URL(BASE_DATA_URL + validCode + ".json"), JsonNode.class)); cardSetCache.put(validCode, requestedSet); @@ -217,7 +217,7 @@ public final class MTGUniverse { * These fields are optional and are set to null if not present. */ fcs.gathererCode = jsonTree.hasNonNull("gathererCode") ? jsonTree.get("gathererCode").asText() : null; - fcs.border = jsonTree.hasNonNull("border") ? jsonTree.get("border").asText() : null; + fcs.border = jsonTree.hasNonNull("border") ? jsonTree.get("border").asText() : null; fcs.type = jsonTree.hasNonNull("type") ? jsonTree.get("type").asText() : null; fcs.block = jsonTree.hasNonNull("block") ? jsonTree.get("block").asText() : null; |