requestHandler.updateServer(beanContext, request, response);
}
public void testUpdateServerWhenRequestHashDiffersFromServerSideHash() throws Exception {
final URI[] locations = new URI[] {new URI("ejbd://localhost:4201")};
ServerMetaData server = new ServerMetaData(locations);
beanContext.setContainer(clusteredContainer);
request.getServerHash();
modify().returnValue(server.buildHash() + 1);
response.setServer(null);
modify().args(new AbstractExpression() {
public void describeWith(ExpressionDescriber arg0) throws IOException {
}
public boolean passes(Object arg0) {
ServerMetaData actualServer = (ServerMetaData) arg0;
assertSame(locations, actualServer.getLocations());
return true;
}
});
clusteredContainer.getLocations(beanContext);