Valentin Spiroski
11 months ago
8 changed files with 211 additions and 105 deletions
-
81.classpath
-
53pom.xml
-
11src/main/java/ChatServer.java
-
6src/main/java/ClientHandler.java
-
51src/main/java/CreateUser.java
-
48src/main/java/LoginGUI.java
-
39src/main/java/SignUpGUI.java
-
27user.json
@ -1,40 +1,41 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
|
||||
<classpath> |
|
||||
<classpathentry kind="src" output="target/classes" path="src/main/java"> |
|
||||
<attributes> |
|
||||
<attribute name="optional" value="true"/> |
|
||||
<attribute name="maven.pomderived" value="true"/> |
|
||||
</attributes> |
|
||||
</classpathentry> |
|
||||
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> |
|
||||
<attributes> |
|
||||
<attribute name="maven.pomderived" value="true"/> |
|
||||
<attribute name="optional" value="true"/> |
|
||||
</attributes> |
|
||||
</classpathentry> |
|
||||
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> |
|
||||
<attributes> |
|
||||
<attribute name="optional" value="true"/> |
|
||||
<attribute name="maven.pomderived" value="true"/> |
|
||||
<attribute name="test" value="true"/> |
|
||||
</attributes> |
|
||||
</classpathentry> |
|
||||
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> |
|
||||
<attributes> |
|
||||
<attribute name="maven.pomderived" value="true"/> |
|
||||
<attribute name="test" value="true"/> |
|
||||
<attribute name="optional" value="true"/> |
|
||||
</attributes> |
|
||||
</classpathentry> |
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> |
|
||||
<attributes> |
|
||||
<attribute name="maven.pomderived" value="true"/> |
|
||||
</attributes> |
|
||||
</classpathentry> |
|
||||
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> |
|
||||
<attributes> |
|
||||
<attribute name="maven.pomderived" value="true"/> |
|
||||
</attributes> |
|
||||
</classpathentry> |
|
||||
<classpathentry kind="output" path="target/classes"/> |
|
||||
</classpath> |
|
||||
|
<?xml version="1.0" encoding="UTF-8"?> |
||||
|
<classpath> |
||||
|
<classpathentry kind="src" output="target/classes" path="src/main/java"> |
||||
|
<attributes> |
||||
|
<attribute name="optional" value="true"/> |
||||
|
<attribute name="maven.pomderived" value="true"/> |
||||
|
</attributes> |
||||
|
</classpathentry> |
||||
|
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> |
||||
|
<attributes> |
||||
|
<attribute name="maven.pomderived" value="true"/> |
||||
|
<attribute name="optional" value="true"/> |
||||
|
</attributes> |
||||
|
</classpathentry> |
||||
|
<classpathentry kind="src" output="target/test-classes" path="src/test/java"> |
||||
|
<attributes> |
||||
|
<attribute name="optional" value="true"/> |
||||
|
<attribute name="maven.pomderived" value="true"/> |
||||
|
<attribute name="test" value="true"/> |
||||
|
</attributes> |
||||
|
</classpathentry> |
||||
|
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"> |
||||
|
<attributes> |
||||
|
<attribute name="maven.pomderived" value="true"/> |
||||
|
<attribute name="test" value="true"/> |
||||
|
<attribute name="optional" value="true"/> |
||||
|
</attributes> |
||||
|
</classpathentry> |
||||
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> |
||||
|
<attributes> |
||||
|
<attribute name="maven.pomderived" value="true"/> |
||||
|
</attributes> |
||||
|
</classpathentry> |
||||
|
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> |
||||
|
<attributes> |
||||
|
<attribute name="maven.pomderived" value="true"/> |
||||
|
</attributes> |
||||
|
</classpathentry> |
||||
|
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/> |
||||
|
<classpathentry kind="output" path="target/classes"/> |
||||
|
</classpath> |
@ -1,24 +1,29 @@ |
|||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
||||
<modelVersion>4.0.0</modelVersion> |
|
||||
<groupId>org.progmethoden</groupId> |
|
||||
<artifactId>java-chat</artifactId> |
|
||||
<version>0.0.1-SNAPSHOT</version> |
|
||||
|
|
||||
<dependencies> |
|
||||
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --> |
|
||||
<dependency> |
|
||||
<groupId>com.google.code.gson</groupId> |
|
||||
<artifactId>gson</artifactId> |
|
||||
<version>2.10.1</version> |
|
||||
</dependency> |
|
||||
|
|
||||
<dependency> |
|
||||
<groupId>org.mockito</groupId> |
|
||||
<artifactId>mockito-core</artifactId> |
|
||||
<version>4.1.10</version> |
|
||||
<scope>test</scope> |
|
||||
</dependency> |
|
||||
|
|
||||
</dependencies> |
|
||||
|
|
||||
</project> |
|
||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
|
<modelVersion>4.0.0</modelVersion> |
||||
|
<groupId>org.progmethoden</groupId> |
||||
|
<artifactId>java-chat</artifactId> |
||||
|
<version>0.0.1-SNAPSHOT</version> |
||||
|
|
||||
|
<dependencies> |
||||
|
<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson --> |
||||
|
<dependency> |
||||
|
<groupId>com.google.code.gson</groupId> |
||||
|
<artifactId>gson</artifactId> |
||||
|
<version>2.10.1</version> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>junit</groupId> |
||||
|
<artifactId>junit</artifactId> |
||||
|
<version>4.13.2</version> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
<dependency> |
||||
|
<groupId>org.junit.jupiter</groupId> |
||||
|
<artifactId>junit-jupiter</artifactId> |
||||
|
<version>RELEASE</version> |
||||
|
<scope>test</scope> |
||||
|
</dependency> |
||||
|
|
||||
|
</dependencies> |
||||
|
|
||||
|
</project> |
@ -1,23 +1,20 @@ |
|||||
[ |
[ |
||||
{ |
{ |
||||
"id": "a2864d79-1079-4cbb-8d77-f5f84995580d", |
|
||||
"userName": "Another Test User", |
|
||||
"password": "TestPasswort123", |
|
||||
"birthday": "01.01.2000", |
|
||||
|
"id": "d7ae19fe-4684-4d69-a73d-4cca612962a3", |
||||
|
"userName": "Test", |
||||
|
"password": "8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92", |
||||
|
"birthday": "", |
||||
|
"firstName": "", |
||||
|
"surname": "", |
||||
"stayLoggedIn": false |
"stayLoggedIn": false |
||||
}, |
}, |
||||
{ |
{ |
||||
"id": "3690702d-9c7e-48fb-8a01-ef89b3b76268", |
|
||||
"userName": "TestUser2", |
|
||||
"password": "123456", |
|
||||
"birthday": "01.01.2000", |
|
||||
|
"id": "2ec2c0c5-677c-4262-8958-fef98d11cc63", |
||||
|
"userName": "Test2", |
||||
|
"password": "8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92", |
||||
|
"birthday": "", |
||||
|
"firstName": "", |
||||
|
"surname": "", |
||||
"stayLoggedIn": false |
"stayLoggedIn": false |
||||
}, |
|
||||
{ |
|
||||
"id": "685bc3a6-e706-4214-a5e1-8443d1a5258e", |
|
||||
"userName": "Test User", |
|
||||
"password": "Test", |
|
||||
"birthday": "01.01.2000", |
|
||||
"stayLoggedIn": true |
|
||||
} |
} |
||||
] |
] |
Write
Preview
Loading…
Cancel
Save
Reference in new issue