Skip to content

Commit

Permalink
ARTEMIS-2720 Additional test
Browse files Browse the repository at this point in the history
I wrote a small / quick test while I was testing the PR #3089
and I decided to keep it with the PR
  • Loading branch information
clebertsuconic committed Apr 17, 2020
1 parent 6441068 commit 45a4f6f
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ public void testMatchingDocs() throws Throwable {
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();
Expand Down

0 comments on commit 45a4f6f

Please sign in to comment.