Skip to content

Commit

Permalink
Tidying up CE Procedures.
Browse files Browse the repository at this point in the history
Some of the procedure tests had less descriptive names than they deserved.
They're now aligned with the intent of the tests.
  • Loading branch information
jimwebber committed Sep 3, 2016
1 parent 3808c13 commit ff3072f
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -40,12 +40,13 @@
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;

import static org.neo4j.coreedge.discovery.procedures.DiscoverEndpointAcquisitionServersProcedureTest.addresses;
import static org.neo4j.helpers.collection.Iterators.asList;

public class ClusterOverviewProcedureTest
{
@Test
public void shouldRecommendTheCoreLeaderForWriteAndEdgeForRead() throws Exception
public void shouldProvideOverivewOfCoreAndEdgeServers() throws Exception
{
// given
final CoreTopologyService topologyService = mock( CoreTopologyService.class );
Expand All @@ -59,7 +60,7 @@ public void shouldRecommendTheCoreLeaderForWriteAndEdgeForRead() throws Exceptio
coreMembers.put( follower1, DiscoverEndpointAcquisitionServersProcedureTest.coreAddresses( 1 ) );
coreMembers.put( follower2, DiscoverEndpointAcquisitionServersProcedureTest.coreAddresses( 2 ) );

Set<EdgeAddresses> edges = DiscoverEndpointAcquisitionServersProcedureTest.addresses( 4, 5 );
Set<EdgeAddresses> edges = addresses( 4, 5 );

final ClusterTopology clusterTopology = new ClusterTopology( null, false, coreMembers, edges );
when( topologyService.currentTopology() ).thenReturn( clusterTopology );
Expand Down

0 comments on commit ff3072f

Please sign in to comment.