diff --git a/pom.xml b/pom.xml index 21c5d05..d427c1a 100644 --- a/pom.xml +++ b/pom.xml @@ -1,24 +1,33 @@ - - 4.0.0 - org.progmethoden - java-chat - 0.0.1-SNAPSHOT - - - - - com.google.code.gson - gson - 2.10.1 - - - - org.mockito - mockito-core - 4.1.10 - test - - - - - \ No newline at end of file + + + RELEASE + + + 4.0.0 + org.progmethoden + java-chat + 0.0.1-SNAPSHOT + + + + + com.google.code.gson + gson + 2.10.1 + + + junit + junit + 4.13.2 + test + + + org.junit.jupiter + junit-jupiter + ${junit-jupiter-version} + test + + + + + diff --git a/src/test/java/ChatServerTest.java b/src/test/java/ChatServerTest.java new file mode 100644 index 0000000..80b714d --- /dev/null +++ b/src/test/java/ChatServerTest.java @@ -0,0 +1,26 @@ +import static org.junit.jupiter.api.Assertions.*; + +import java.util.List; + +import org.junit.jupiter.api.Test; + +class ChatServerTest { + + @Test + public void testConstructor() { + // Arrange + ChatServer chatServer = null; + + // Act + try { + chatServer = new ChatServer(1234); + } catch (Exception e) { + fail("Exception occurred: " + e.getMessage()); + } + + // Assert + assertNotNull(chatServer); + } +} + +