From 3d4bb492d0c7ffff350ad627fbf3a33382c999d3 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Thu, 22 Dec 2022 09:51:14 +1100 Subject: [PATCH] Improved test coverage --- .../test/java/org/eclipse/jetty/util/TrieTest.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TrieTest.java b/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TrieTest.java index aa8c51f84d15..f3ea19444e48 100644 --- a/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TrieTest.java +++ b/jetty-core/jetty-util/src/test/java/org/eclipse/jetty/util/TrieTest.java @@ -124,7 +124,16 @@ public static Stream emptyImplementations() { impls.add(new ArrayTrie(caseSensitive, 128)); impls.add(new ArrayTernaryTrie(caseSensitive, 128)); - impls.add(new TreeTrie<>(caseSensitive)); + + TreeTrie treeTry = new TreeTrie<>(caseSensitive); + // create tree and then delete keys + treeTry.put("abc", -1); + treeTry.put("ade", -2); + treeTry.put("a[]", -3); + treeTry.remove("abc"); + treeTry.remove("ade"); + treeTry.remove("a[]"); + impls.add(treeTry); } return impls.stream().map(Arguments::of);