mirror of https://github.com/apache/activemq.git
added more edge cases to the DestinationMap test case
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@365890 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8b28367f3d
commit
c62a775af4
|
@ -181,6 +181,9 @@ public class DestinationMapTest extends TestCase {
|
||||||
|
|
||||||
assertMapValue("TEST.*", v1, v2);
|
assertMapValue("TEST.*", v1, v2);
|
||||||
assertMapValue("TEST.*.*", v2, v3, v4, v5, v6);
|
assertMapValue("TEST.*.*", v2, v3, v4, v5, v6);
|
||||||
|
assertMapValue("TEST.*.>", v1, v2, v3, v4, v5, v6);
|
||||||
|
assertMapValue("TEST.>", v1, v2, v3, v4, v5, v6);
|
||||||
|
assertMapValue("TEST.>.>", v1, v2, v3, v4, v5, v6);
|
||||||
assertMapValue("*.*.D3", v2, v3, v5);
|
assertMapValue("*.*.D3", v2, v3, v5);
|
||||||
assertMapValue("TEST.BAR.*", v2, v5, v6);
|
assertMapValue("TEST.BAR.*", v2, v5, v6);
|
||||||
|
|
||||||
|
@ -338,6 +341,10 @@ public class DestinationMapTest extends TestCase {
|
||||||
protected void assertMapValue(String destinationName, Object expected1, Object expected2, Object expected3, Object expected4, Object expected5) {
|
protected void assertMapValue(String destinationName, Object expected1, Object expected2, Object expected3, Object expected4, Object expected5) {
|
||||||
assertMapValue(destinationName, Arrays.asList(new Object[] { expected1, expected2, expected3, expected4, expected5 }));
|
assertMapValue(destinationName, Arrays.asList(new Object[] { expected1, expected2, expected3, expected4, expected5 }));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void assertMapValue(String destinationName, Object expected1, Object expected2, Object expected3, Object expected4, Object expected5, Object expected6) {
|
||||||
|
assertMapValue(destinationName, Arrays.asList(new Object[] { expected1, expected2, expected3, expected4, expected5, expected6 }));
|
||||||
|
}
|
||||||
|
|
||||||
protected void assertMapValue(ActiveMQDestination destination, Object expected) {
|
protected void assertMapValue(ActiveMQDestination destination, Object expected) {
|
||||||
List expectedList = null;
|
List expectedList = null;
|
||||||
|
|
Loading…
Reference in New Issue