From 7129f0f3abbae816d153143b1ee9f98a06336bda Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Tue, 11 May 2021 04:25:35 +0200 Subject: [PATCH] fix: removed Req from EventTypes as it's now a request, not an event --- .../teamname/marvelous/gamelibrary/events/EventType.java | 1 - .../marvelous/gamelibrary/json/ingame/EventDeserializer.java | 2 ++ .../uulm/teamname/marvelous/gamelibrary/json/JSONTest.java | 5 +++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java create mode 100644 src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java index b7240e2..7c95dbf 100644 --- a/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/events/EventType.java @@ -5,7 +5,6 @@ public enum EventType { // GameStateEvents Ack, Nack, - Req, GameStateEvent, CustomEvent, diff --git a/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java new file mode 100644 index 0000000..c65a429 --- /dev/null +++ b/src/main/java/uulm/teamname/marvelous/gamelibrary/json/ingame/EventDeserializer.java @@ -0,0 +1,2 @@ +package uulm.teamname.marvelous.gamelibrary.json.ingame;public class EventDeserializer { +} diff --git a/src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java new file mode 100644 index 0000000..4769755 --- /dev/null +++ b/src/test/java/uulm/teamname/marvelous/gamelibrary/json/JSONTest.java @@ -0,0 +1,5 @@ +import static org.mockito.Mockito.*; +import static org.junit.jupiter.api.Assertions.*; +class JSONTest { + +} \ No newline at end of file