use of org.apache.activemq.artemis.core.postoffice.Address in project activemq-artemis by apache.
the class AddressImplTest method testE.
@Test
public void testE() {
SimpleString s1 = new SimpleString("a.b.c.d.e.f");
SimpleString s2 = new SimpleString("a.b.c.x.e.f");
SimpleString s3 = new SimpleString("a.b.*.d.*.f");
Address a1 = new AddressImpl(s1);
Address a2 = new AddressImpl(s2);
Address w = new AddressImpl(s3);
Assert.assertTrue(a1.matches(w));
Assert.assertFalse(a2.matches(w));
}
Aggregations