提交 d204eb26 编写于 作者: sinat_25235033's avatar sinat_25235033

update test and pass it

上级 b071c56f
......@@ -84,7 +84,7 @@ public class TirePathTreeTest {
// **匹配
Assert.assertEquals("[role5]", root.searchPathFilterRoles("/api/mi/tom/hello===put"));
Assert.assertEquals("[role6]", root.searchPathFilterRoles("/api/mo/tom/hello/day/day===get"));
Assert.assertEquals("[role6]", root.searchPathFilterRoles("/api/day/day/day/day/book/day/mo===put"));
Assert.assertEquals("[role7]", root.searchPathFilterRoles("/api/day/day/day/day/book/day/mo===put"));
// 普通优先级>*>**
Assert.assertEquals("[role5]", root.searchPathFilterRoles("/api/v5/day/book===put"));
Assert.assertEquals("[role1]", root.searchPathFilterRoles("/api/demo/book/tom/egg===get"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册