Removes commons lang3
This commit is contained in:
@@ -22,7 +22,6 @@ import java.util.List;
|
||||
import java.util.Random;
|
||||
import java.util.function.Predicate;
|
||||
|
||||
import org.apache.commons.lang3.RandomStringUtils;
|
||||
import org.openjdk.jmh.annotations.Benchmark;
|
||||
import org.openjdk.jmh.annotations.BenchmarkMode;
|
||||
import org.openjdk.jmh.annotations.Fork;
|
||||
@@ -47,8 +46,10 @@ public class PathRoutePredicatePathContainerAttrBenchMarkTests {
|
||||
|
||||
static {
|
||||
predicates = new LinkedList<>();
|
||||
PATH_PATTERN_PREFIX = String.format("/%s/%s/", RandomStringUtils.random(20, true, false),
|
||||
RandomStringUtils.random(10, true, false));
|
||||
Random random = new Random();
|
||||
String path1 = String.format("%1$" + 20 + "s", random.nextInt()).replace(' ', '0');
|
||||
String path2 = String.format("%1$" + 10 + "s", random.nextInt()).replace(' ', '0');
|
||||
PATH_PATTERN_PREFIX = String.format("/%s/%s/", path1, path2);
|
||||
for (int i = 0; i < ROUTES_NUM; i++) {
|
||||
PathRoutePredicateFactory.Config config = new PathRoutePredicateFactory.Config()
|
||||
.setPatterns(Collections.singletonList(PATH_PATTERN_PREFIX + i))
|
||||
|
||||
Reference in New Issue
Block a user