From 401ab61bdc05fa510c47bd3c7c7b3711c24cf591 Mon Sep 17 00:00:00 2001 From: Martin Ritchie Date: Fri, 14 Aug 2009 12:50:36 +0000 Subject: QPID-2001 : Default Locale should be the VMs locale not en_US. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@804201 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/qpid/server/configuration/ServerConfigurationTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'java/broker/src/test') diff --git a/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java b/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java index 4e20f537f1..8cb0837b39 100644 --- a/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java +++ b/java/broker/src/test/java/org/apache/qpid/server/configuration/ServerConfigurationTest.java @@ -263,9 +263,8 @@ public class ServerConfigurationTest extends TestCase // Check default ServerConfiguration serverConfig = new ServerConfiguration(_config); - String defaultParts[] = ServerConfiguration.DEFAULT_ADVANCED_LOCALE.split("_"); - // The Default is en_US so will split well - Locale defaultLocale = new Locale(defaultParts[0],defaultParts[1]); + // The Default is what ever the VMs default is + Locale defaultLocale = Locale.getDefault(); assertEquals(defaultLocale, serverConfig.getLocale()); -- cgit v1.2.1