@Test public void testBuildRoutingKeyForAgent_String() { Assert.assertEquals( "machine.root", MessagingUtils.buildTopicNameForAgent( "root" )); Assert.assertEquals( "machine.root", MessagingUtils.buildTopicNameForAgent("/root")); Assert.assertEquals( "machine.root", MessagingUtils.buildTopicNameForAgent( "/root/" )); Assert.assertEquals( "machine.root.docker", MessagingUtils.buildTopicNameForAgent( "/root/docker" )); Assert.assertNotSame( MessagingUtils.buildTopicNameForAgent( "root1" ), MessagingUtils.buildTopicNameForAgent( "root2" )); }
public static String buildTopicNameForAgent( Instance instance ) { Instance scopedInstance = InstanceHelpers.findScopedInstance( instance ); return buildTopicNameForAgent( InstanceHelpers.computeInstancePath( scopedInstance )); }
MessagingUtils { public static String buildTopicNameForAgent( Instance instance ) { Instance scopedInstance = InstanceHelpers.findScopedInstance( instance ); return buildTopicNameForAgent( InstanceHelpers.computeInstancePath( scopedInstance )); } }
MessagingUtils { public static String buildTopicNameForAgent( Instance instance ) { Instance scopedInstance = InstanceHelpers.findScopedInstance( instance ); return buildTopicNameForAgent( InstanceHelpers.computeInstancePath( scopedInstance )); } private  MessagingUtils(); }
MessagingUtils { public static String buildTopicNameForAgent( Instance instance ) { Instance scopedInstance = InstanceHelpers.findScopedInstance( instance ); return buildTopicNameForAgent( InstanceHelpers.computeInstancePath( scopedInstance )); } private  MessagingUtils(); static String buildTopicNameForAgent( Instance instance ); static String buildTopicNameForAgent( String scopedInstancePath ); static String escapeInstancePath( String instancePath ); static String buildId(
			RecipientKind ownerKind,
			String domain,
			String applicationName,
			String scopedInstancePath ); }
MessagingUtils { public static String buildTopicNameForAgent( Instance instance ) { Instance scopedInstance = InstanceHelpers.findScopedInstance( instance ); return buildTopicNameForAgent( InstanceHelpers.computeInstancePath( scopedInstance )); } private  MessagingUtils(); static String buildTopicNameForAgent( Instance instance ); static String buildTopicNameForAgent( String scopedInstancePath ); static String escapeInstancePath( String instancePath ); static String buildId(
			RecipientKind ownerKind,
			String domain,
			String applicationName,
			String scopedInstancePath );  }