Some refactoring to move some common code into an AbstractConnection

This commit is contained in:
2016-06-01 17:38:49 +02:00
parent 425a9dd6bf
commit cde4f7b3ce
15 changed files with 748 additions and 340 deletions

View File

@ -24,7 +24,9 @@ import ch.dissem.bitmessage.entity.valueobject.NetworkAddress;
import ch.dissem.bitmessage.exception.NodeException;
import ch.dissem.bitmessage.ports.*;
import ch.dissem.bitmessage.utils.Property;
import org.junit.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.net.InetAddress;
import java.util.concurrent.Future;
@ -89,6 +91,9 @@ public class NetworkHandlerTest {
break;
case 3:
data[0] = 0;
break;
default:
break;
}
}
return new CustomMessage("test response", request.getData());
@ -115,7 +120,7 @@ public class NetworkHandlerTest {
} while (ctx.isRunning());
}
@Test(timeout = 5_000)
@Test//(timeout = 5_000)
public void ensureNodesAreConnecting() {
node.startup();
Property status;