Skip to content

Conversation

@zhenlineo
Copy link
Contributor

@zhenlineo zhenlineo commented Mar 13, 2017

Added withRoutingParameters in driver Config for passing in getServersV2 parameters

Copy link
Contributor

@lutovich lutovich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhenlineo review round completed. Made couple comments.

* limitations under the License.
*/
package org.neo4j.driver.v1.util;
package org.neo4j.driver.internal.cluster;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe org.neo4j.driver.internal.util?

assertThat( e.getMessage(),
containsString( "Failed to call 'dbms.cluster.routing.getServers' procedure on server" ) );
assertThat( e.getMessage(), containsString( "Failed to run " +
"'Statement{text='CALL dbms.cluster.routing.getServers', parameters={}}' on server." ) );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho user-facing message with Statement{ does not look pretty. Could we maybe concatenate a prettier message in GetServersProcedureClusterCompositionProvider instead of using default Statement#toString()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's improve it in another PR, I will merge this PR once it is green.

runner.run( mock );

// Then
assertThat( runner.procedureCalled().toString(), equalTo(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Statement as a good #equals() method defined. I think it should be used for assertions instead of #toString().

Zhen added 2 commits March 20, 2017 18:26
Renamed to `getRoutingTable` and `withRoutingContext`
@zhenlineo zhenlineo merged commit e74e618 into neo4j:1.3 Mar 20, 2017
@zhenlineo zhenlineo deleted the 1.3-getServersV2 branch March 20, 2017 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants