Created
February 13, 2013 15:09
-
-
Save sherman/4945251 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
multipleClientQueriesTestTemplate( | |
ImmutableList.<Pair<Node, Pair<BaseWebSocket, List<String>>>>of( | |
Pair.<Node, Pair<BaseWebSocket, List<String>>>of( | |
node1, | |
Pair.<BaseWebSocket, List<String>>of( | |
new BaseWebSocket() { | |
@Override | |
public void onMessage(String message) { | |
log.info("answer:" + message); | |
latch.countDown(); | |
} | |
}, | |
ImmutableList.<String>of( | |
"{\"header\":{\"version\":\"V1\",\"token\":\"9994b4a1cda642e7f3230cae555b6c2a23ba224e\",\"chunksCount\":1,\"chunk\":1,\"destination\":\"AUTH\",\"clientId\":100,\"sent\":\"2012-06-22T15:47:35.248\"},\"message\":{}}" | |
) | |
) | |
), | |
Pair.<Node, Pair<BaseWebSocket, List<String>>>of( | |
node2, | |
Pair.<BaseWebSocket, List<String>>of( | |
new BaseWebSocket() { | |
@Override | |
public void onMessage(String message) { | |
log.info("answer:" + message); | |
latch.countDown(); | |
} | |
}, | |
ImmutableList.<String>of( | |
"{\"header\":{\"version\":\"V1\",\"token\":\"9994b4a1cda642e7f3230cae555b6c2a23ba224e\",\"chunksCount\":1,\"chunk\":1,\"destination\":\"AUTH\",\"clientId\":101,\"sent\":\"2012-06-22T15:47:35.248\"},\"message\":{}}" | |
) | |
) | |
) | |
) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment