Skip to content

Commit

Permalink
Excluded java 8 from unit test file, also updated JaCoCo version.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcluque committed Aug 3, 2018
1 parent f37bed4 commit 41f781f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -50,7 +50,7 @@
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.6.201602180812</version>
<version>0.8.1</version>
<executions>
<execution>
<goals>
Expand Down
15 changes: 13 additions & 2 deletions server/src/test/java/de/datasecs/hydra/server/HydraServerTest.java
@@ -1,5 +1,7 @@
package de.datasecs.hydra.server;

import de.datasecs.hydra.shared.handler.Session;
import de.datasecs.hydra.shared.handler.listener.HydraSessionListener;
import io.netty.channel.ChannelOption;
import org.junit.Assert;
import org.junit.BeforeClass;
Expand All @@ -17,8 +19,17 @@ public static void initServer() {
server = new Server.Builder("localhost", 8888, new TestProtocol())
.bossThreads(2)
.workerThreads(4)
.onConnected(session -> System.out.println("TestClient connected!"))
.onDisconnected(session -> System.out.println("TestClient disconnected!"))
.addListener(new HydraSessionListener() {
@Override
public void onConnected(Session session) {
System.out.println("TestClient connected!");
}

@Override
public void onDisconnected(Session session) {
System.out.println("TestClient disconnected!");
}
})
.option(ChannelOption.TCP_NODELAY, true)
.option(ChannelOption.SO_KEEPALIVE, true)
.option(ChannelOption.SO_BACKLOG, 200)
Expand Down

0 comments on commit 41f781f

Please sign in to comment.