use of org.apache.activemq.artemis.core.postoffice.impl.AddressImpl in project activemq-artemis by apache.
the class AddressImplTest method testA.
@Test
public void testA() {
SimpleString s1 = new SimpleString("a.b.c");
SimpleString s2 = new SimpleString("a.b.c.d.e.f.g.h.i.j.k.l.m.n.*");
Address a1 = new AddressImpl(s1);
Address a2 = new AddressImpl(s2);
Assert.assertFalse(a1.matches(a2));
}
use of org.apache.activemq.artemis.core.postoffice.impl.AddressImpl in project activemq-artemis by apache.
the class AddressImplTest method testL.
@Test
public void testL() {
SimpleString s1 = new SimpleString("a.b.c.d.e.f");
SimpleString s2 = new SimpleString("a.b.c.d.e.x");
SimpleString s3 = new SimpleString("a.#.c.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));
}
use of org.apache.activemq.artemis.core.postoffice.impl.AddressImpl in project activemq-artemis by apache.
the class AddressImplTest method testB.
@Test
public void testB() {
SimpleString s1 = new SimpleString("a.b.c.d");
SimpleString s2 = new SimpleString("a.b.x.e");
SimpleString s3 = new SimpleString("a.b.c.*");
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));
}
use of org.apache.activemq.artemis.core.postoffice.impl.AddressImpl in project activemq-artemis by apache.
the class AddressImplTest method testC.
@Test
public void testC() {
SimpleString s1 = new SimpleString("a.b.c.d");
SimpleString s2 = new SimpleString("a.b.c.x");
SimpleString s3 = new SimpleString("a.b.*.d");
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));
}
use of org.apache.activemq.artemis.core.postoffice.impl.AddressImpl in project activemq-artemis by apache.
the class AddressImplTest method testQ.
@Test
public void testQ() {
SimpleString s1 = new SimpleString("a.b.c.d");
SimpleString s3 = new SimpleString("#a.b.c");
Address a1 = new AddressImpl(s1);
Address w = new AddressImpl(s3);
Assert.assertFalse(a1.matches(w));
}
Aggregations