ResourceNames { public static String decomposeRetroactiveResourceAddressName(String prefix, String delimiter, String address) { return address.substring(address.indexOf(prefix) + prefix.length(), address.indexOf(delimiter + trimLastCharacter(ADDRESS))); }  static SimpleString getRetroactiveResourceQueueName(String prefix, String delimiter, SimpleString address, RoutingType routingType); static SimpleString getRetroactiveResourceAddressName(String prefix, String delimiter, SimpleString address); static SimpleString getRetroactiveResourceDivertName(String prefix, String delimiter, SimpleString address); static boolean isRetroactiveResource(String prefix, SimpleString address); static String decomposeRetroactiveResourceAddressName(String prefix, String delimiter, String address); static final String BROKER; static final String QUEUE; static final String ADDRESS; static final String BRIDGE; static final String ACCEPTOR; static final String DIVERT; static final String CORE_CLUSTER_CONNECTION; static final String BROADCAST_GROUP; static final String RETROACTIVE_SUFFIX; }
@Test public void testDecomposeRetroactiveResourceAddressName() { assertEquals(testAddress.toString(), ResourceNames.decomposeRetroactiveResourceAddressName(prefix, delimiter, testResourceAddressName)); }