mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 18:35:25 +00:00
Adding Locale.ROOT to String.format for forbidden API usage
Original commit: elastic/x-pack-elasticsearch@4d78705e12
This commit is contained in:
parent
9f41a99e37
commit
05811c5167
@ -7,6 +7,8 @@ package org.elasticsearch.license.core;
|
||||
|
||||
import org.elasticsearch.test.ESTestCase;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import static org.elasticsearch.license.core.License.OperationMode;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
|
||||
@ -52,7 +54,7 @@ public class LicenseOperationModeTests extends ESTestCase {
|
||||
try {
|
||||
OperationMode.resolve(type);
|
||||
|
||||
fail(String.format("[%s] should not be recognized as an operation mode", type));
|
||||
fail(String.format(Locale.ROOT, "[%s] should not be recognized as an operation mode", type));
|
||||
}
|
||||
catch (IllegalArgumentException e) {
|
||||
assertThat(e.getMessage(), equalTo("unknown type [" + type + "]"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user