From 23a0a0cd903fcd1d64c73c1b7a35b69d58302644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=87=91=E6=88=9F?= Date: Sat, 20 Feb 2021 21:03:18 +0800 Subject: [PATCH] allow lower case global parameter value --- .../main/java/com/alibaba/testable/core/model/MockScope.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testable-core/src/main/java/com/alibaba/testable/core/model/MockScope.java b/testable-core/src/main/java/com/alibaba/testable/core/model/MockScope.java index dad5456..c51b8ec 100644 --- a/testable-core/src/main/java/com/alibaba/testable/core/model/MockScope.java +++ b/testable-core/src/main/java/com/alibaba/testable/core/model/MockScope.java @@ -14,7 +14,7 @@ public enum MockScope { public static MockScope of(String scope) { try { - return valueOf(scope); + return valueOf(scope.toUpperCase()); } catch (IllegalArgumentException e) { return GLOBAL; }