diff --git a/src/swarm/node/model/NeoNode.d b/src/swarm/node/model/NeoNode.d index 67348677..ab85d5b4 100644 --- a/src/swarm/node/model/NeoNode.d +++ b/src/swarm/node/model/NeoNode.d @@ -1068,9 +1068,27 @@ version (UnitTest) } override protected void handleCommand () {} } + + private class TestNode : NodeBase!(TestConnectionHandler) + { + public this ( ) + { + super(NodeItem("127.0.0.1".dup, 2323), new ConnectionSetupParams, 1); + } + + protected override cstring id ( ) + { + return "test"; + } + + protected override void getResourceAcquirer ( + void delegate ( Object resource_acquirer ) handle_request_dg ) + { + } + } } unittest { - alias NodeBase!(TestConnectionHandler) Instance; + auto node = new TestNode; } diff --git a/src/swarm/node/model/Node.d b/src/swarm/node/model/Node.d index 5f56e146..b99d87e7 100644 --- a/src/swarm/node/model/Node.d +++ b/src/swarm/node/model/Node.d @@ -698,9 +698,22 @@ version (UnitTest) } override protected void handleCommand () {} } + + private class TestNode : NodeBase!(TestConnectionHandler) + { + public this ( ) + { + super(NodeItem("127.0.0.1".dup, 2323), new ConnectionSetupParams, 1); + } + + protected override cstring id ( ) + { + return "test"; + } + } } unittest { - alias NodeBase!(TestConnectionHandler) Instance; + auto node = new TestNode; }