From ce71de5d25d8b604b820a3cc53deeef6a1f617df Mon Sep 17 00:00:00 2001 From: Yannik Bretschneider Date: Tue, 18 May 2021 18:23:30 +0200 Subject: [PATCH] test: created partial test prototype for MarvelousServer --- .../NetConnector/MarvelousServerTest.java | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Server/src/test/java/uulm/teamname/marvelous/server/NetConnector/MarvelousServerTest.java diff --git a/Server/src/test/java/uulm/teamname/marvelous/server/NetConnector/MarvelousServerTest.java b/Server/src/test/java/uulm/teamname/marvelous/server/NetConnector/MarvelousServerTest.java new file mode 100644 index 0000000..b6c9d76 --- /dev/null +++ b/Server/src/test/java/uulm/teamname/marvelous/server/NetConnector/MarvelousServerTest.java @@ -0,0 +1,23 @@ +package uulm.teamname.marvelous.server.NetConnector; + +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import static org.mockito.Mockito.*; +import static org.junit.jupiter.api.Assertions.*; + +class MarvelousServerTest { + + MarvelousServer server; + + @BeforeEach + void setUp() { + server = spy(MarvelousServer.class); + } + + @Test + void mockitoTestThing() { + // verify(server).onMessage(null, "hi"); + + } +} \ No newline at end of file