ResourceNames { public static boolean isRetroactiveResource(String prefix, SimpleString address) { return address.toString().startsWith(prefix) && address.toString().endsWith(RETROACTIVE_SUFFIX); }  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 testIsRetroactiveResource() { assertTrue(ResourceNames.isRetroactiveResource(prefix, SimpleString.toSimpleString(testResourceAddressName))); assertTrue(ResourceNames.isRetroactiveResource(prefix, SimpleString.toSimpleString(testResourceMulticastQueueName))); assertTrue(ResourceNames.isRetroactiveResource(prefix, SimpleString.toSimpleString(testResourceDivertName))); }