ARTEMIS-2720 Additional test
I wrote a small / quick test while I was testing the PR #3089 and I decided to keep it with the PR
This commit is contained in:
parent
6441068b95
commit
45a4f6fc39
|
@ -65,6 +65,18 @@ public class RepositoryTest extends ActiveMQTestBase {
|
|||
Assert.assertEquals("abd#", repo.getMatch("a.b.d"));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCacheWithWildcards() throws Throwable {
|
||||
HierarchicalObjectRepository<String> repo = new HierarchicalObjectRepository<>();
|
||||
|
||||
repo.addMatch("#", "root");
|
||||
Assert.assertEquals("root", repo.getMatch("b"));
|
||||
|
||||
repo.addMatch("b", "leaf");
|
||||
Assert.assertEquals("leaf", repo.getMatch("b"));
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
public void testMatchingDocsCustomUnderscorDelimiter() throws Throwable {
|
||||
WildcardConfiguration wildcardConfiguration = new WildcardConfiguration();
|
||||
|
|
Loading…
Reference in New Issue