summaryrefslogtreecommitdiff
path: root/src/test/java/org/luxons
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2016-12-21 02:13:14 +0100
committerjbion <joffrey.bion@amadeus.com>2016-12-21 02:13:14 +0100
commitbb300facfb9de27978da06ddf92353557bec559a (patch)
tree21fa3fe3e1cd8878d0b5ee20cbf9d3b9e5535c36 /src/test/java/org/luxons
parentAdd test for ProductionIncrease serializer (diff)
downloadseven-wonders-bb300facfb9de27978da06ddf92353557bec559a.tar.gz
seven-wonders-bb300facfb9de27978da06ddf92353557bec559a.tar.bz2
seven-wonders-bb300facfb9de27978da06ddf92353557bec559a.zip
Remove explicit types from toJson calls
Diffstat (limited to 'src/test/java/org/luxons')
-rw-r--r--src/test/java/org/luxons/sevenwonders/game/data/serializers/ResourcesSerializerTest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test/java/org/luxons/sevenwonders/game/data/serializers/ResourcesSerializerTest.java b/src/test/java/org/luxons/sevenwonders/game/data/serializers/ResourcesSerializerTest.java
index 022949fd..1fd01337 100644
--- a/src/test/java/org/luxons/sevenwonders/game/data/serializers/ResourcesSerializerTest.java
+++ b/src/test/java/org/luxons/sevenwonders/game/data/serializers/ResourcesSerializerTest.java
@@ -26,21 +26,21 @@ public class ResourcesSerializerTest {
@Test
public void serialize_emptyResourcesToNull() {
Resources resources = new Resources();
- assertEquals("null", gson.toJson(resources, Resources.class));
+ assertEquals("null", gson.toJson(resources));
}
@Test
public void serialize_singleType() {
Resources resources = new Resources();
resources.add(ResourceType.WOOD, 1);
- assertEquals("\"W\"", gson.toJson(resources, Resources.class));
+ assertEquals("\"W\"", gson.toJson(resources));
}
@Test
public void serialize_multipleTimesSameType() {
Resources resources = new Resources();
resources.add(ResourceType.WOOD, 3);
- assertEquals("\"WWW\"", gson.toJson(resources, Resources.class));
+ assertEquals("\"WWW\"", gson.toJson(resources));
}
@Test
@@ -49,7 +49,7 @@ public class ResourcesSerializerTest {
resources.add(ResourceType.WOOD, 1);
resources.add(ResourceType.STONE, 1);
resources.add(ResourceType.CLAY, 1);
- assertEquals("\"WSC\"", gson.toJson(resources, Resources.class));
+ assertEquals("\"WSC\"", gson.toJson(resources));
}
@Test
@@ -59,7 +59,7 @@ public class ResourcesSerializerTest {
resources.add(ResourceType.WOOD, 2);
resources.add(ResourceType.CLAY, 1);
resources.add(ResourceType.STONE, 1);
- assertEquals("\"WWSCC\"", gson.toJson(resources, Resources.class));
+ assertEquals("\"WWSCC\"", gson.toJson(resources));
}
@Test
bgstack15