Skip to content

Commit

Permalink
add matchUpperCaseTest
Browse files Browse the repository at this point in the history
  • Loading branch information
tvd12 committed Mar 30, 2024
1 parent ac23fb2 commit acf6f1e
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,16 @@ public void matchAllTest() {
Asserts.assertNotNull(tree.getMatchedURI("/market/items/hello/java/docs/index.html"));
Asserts.assertNotNull(tree.getMatchedURI("/market/items/hello/java/docs/com/tvd12/index.html"));
}

@Test
public void matchUpperCaseTest() {
// given
URITree tree = new URITree();
tree.addURI("/api/v1/oa/{code}/webhook");

// when
// then
System.out.println(tree);
Asserts.assertNotNull(tree.getMatchedURI("/api/v1/oa/ZALO/webhook"));
}
}

0 comments on commit acf6f1e

Please sign in to comment.