@Test public void testBuildRoutingKeyForAgent_Instance() { Instance inst = new Instance( "my-root" ); Assert.assertNotNull( MessagingUtils.buildTopicNameForAgent( inst )); Assert.assertEquals( MessagingUtils.buildTopicNameForAgent( inst ), MessagingUtils.buildTopicNameForAgent( inst.getName())); Instance childInstance = new Instance( "child" ); InstanceHelpers.insertChild( inst, childInstance ); Assert.assertEquals( MessagingUtils.buildTopicNameForAgent( childInstance ), MessagingUtils.buildTopicNameForAgent( inst )); }
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 );  }