This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

@@ -14,7 +14,7 @@ buildscript {
// maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M2'
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-M4'
}
}

@@ -32,7 +32,7 @@ dependencies {
// The production code uses the SLF4J logging API at compile time
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'com.rabbitmq:amqp-client:3.6.3'
compile 'org.apache.commons:commons-lang3:3.1'
//compile 'org.apache.commons:commons-lang3:3.1'
compile 'org.mockito:mockito-core:1.10.19'

compileOnly "org.projectlombok:lombok:1.16.10"
@@ -44,14 +44,14 @@ dependencies {

// Needed for running JUnit5 tests in Intellij.
// Not needed for running "gradle test"
testCompile("org.junit.platform:junit-platform-runner:1.0.0-M2")
testCompile("org.junit.platform:junit-platform-runner:1.0.0-M4")

testCompile("org.junit.jupiter:junit-jupiter-api:5.0.0-M2")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.0.0-M2")
testCompile("org.junit.jupiter:junit-jupiter-api:5.0.0-M4")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.0.0-M4")
}

junitPlatform {
platformVersion = "1.0.0-M2"
platformVersion = "1.0.0-M4"
}

idea {
@@ -5,8 +5,8 @@

import static org.junit.Assert.assertFalse;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.expectThrows;

public class DeserializerTest {
@Test
@@ -34,7 +34,7 @@ public void error_if_no_map_height() throws Exception {
String serialized = "[GameInfo] mapWidth=10";

// When
Throwable exception = expectThrows(RuntimeException.class, () -> deserializer.deserialize(serialized));
Throwable exception = assertThrows(RuntimeException.class, () -> deserializer.deserialize(serialized));

// Then
System.out.println(exception);
@@ -48,7 +48,7 @@ public void error_if_no_map_width() throws Exception {
String serialized = "[GameInfo] mapHeight=10";

// When
Throwable exception = expectThrows(RuntimeException.class, () -> deserializer.deserialize(serialized));
Throwable exception = assertThrows(RuntimeException.class, () -> deserializer.deserialize(serialized));

// Then
System.out.println(exception);
@@ -62,7 +62,7 @@ public void error_if_no_sleep_time() throws Exception {
String serialized = "[GameInfo] mapHeight=10 mapWidth=10";

// When
Throwable exception = expectThrows(RuntimeException.class, () -> deserializer.deserialize(serialized));
Throwable exception = assertThrows(RuntimeException.class, () -> deserializer.deserialize(serialized));

// Then
System.out.println(exception);

Large diffs are not rendered by default.

Large diffs are not rendered by default.

@@ -1,5 +1,8 @@
package test_helper;

import com.yngvark.gridwalls.netcom.GameRpcServer;
import com.yngvark.gridwalls.netcom.RpcRequestHandler;

import java.io.IOException;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.TimeoutException;
@@ -8,6 +8,8 @@
import com.rabbitmq.client.Consumer;
import com.rabbitmq.client.DefaultConsumer;
import com.rabbitmq.client.Envelope;
import com.yngvark.gridwalls.netcom.GameRpcServer;
import com.yngvark.gridwalls.netcom.RpcRequestHandler;

import java.io.IOException;
import java.util.Map;
@@ -1,5 +1,6 @@
package test_helper;

import com.yngvark.gridwalls.netcom.GameRpcServer;
import util.lib.InputStreamListener;
import util.lib.ProcessKiller;
import util.lib.ProcessStarter;