Merge branch '6.1.x'
This commit is contained in:
@@ -22,6 +22,7 @@ import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@@ -166,7 +167,7 @@ public @interface NestedTestConfiguration {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return EnclosingConfiguration.valueOf(name.trim().toUpperCase());
|
||||
return EnclosingConfiguration.valueOf(name.trim().toUpperCase(Locale.ROOT));
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
Log logger = LogFactory.getLog(EnclosingConfiguration.class);
|
||||
@@ -178,7 +179,6 @@ public @interface NestedTestConfiguration {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -22,6 +22,7 @@ import java.lang.annotation.Inherited;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
@@ -161,7 +162,7 @@ public @interface TestConstructor {
|
||||
return null;
|
||||
}
|
||||
try {
|
||||
return AutowireMode.valueOf(name.trim().toUpperCase());
|
||||
return AutowireMode.valueOf(name.trim().toUpperCase(Locale.ROOT));
|
||||
}
|
||||
catch (IllegalArgumentException ex) {
|
||||
Log logger = LogFactory.getLog(AutowireMode.class);
|
||||
|
||||
@@ -18,6 +18,7 @@ package org.springframework.test.context.junit.jupiter;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.AnnotatedElement;
|
||||
import java.util.Locale;
|
||||
import java.util.Optional;
|
||||
import java.util.function.Function;
|
||||
|
||||
@@ -190,7 +191,7 @@ abstract class AbstractExpressionEvaluatingCondition implements ExecutionConditi
|
||||
return b;
|
||||
}
|
||||
else if (result instanceof String str) {
|
||||
str = str.trim().toLowerCase();
|
||||
str = str.trim().toLowerCase(Locale.ROOT);
|
||||
if ("true".equals(str)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user