Mercurial > hg > release > thermostat-0.5
changeset 917:2d4685205bd5
Merge
author | Roman Kennke <rkennke@redhat.com> |
---|---|
date | Wed, 16 Jan 2013 12:20:36 +0100 |
parents | d17bced3f305 (diff) 0f4271d4e334 (current diff) |
children | 4a2301e50857 31c6026714f5 |
files | launcher/src/main/java/com/redhat/thermostat/launcher/CommonCommandOptions.java launcher/src/test/java/com/redhat/thermostat/launcher/CommonCommandOptionsTest.java |
diffstat | 1 files changed, 16 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/vm-cpu/client-cli/src/test/java/com/redhat/thermostat/vm/cpu/client/cli/internal/VmCpuStatPrintDelegateTest.java Fri Jan 11 19:23:03 2013 +0100 +++ b/vm-cpu/client-cli/src/test/java/com/redhat/thermostat/vm/cpu/client/cli/internal/VmCpuStatPrintDelegateTest.java Wed Jan 16 12:20:36 2013 +0100 @@ -42,9 +42,12 @@ import java.util.Arrays; import java.util.List; +import java.util.Locale; import org.junit.After; +import org.junit.AfterClass; import org.junit.Before; +import org.junit.BeforeClass; import org.junit.Test; import com.redhat.thermostat.common.cli.CommandException; @@ -56,11 +59,24 @@ public class VmCpuStatPrintDelegateTest { + private static Locale defaultLocale; + private VmCpuStatDAO vmCpuStatDAO; private VmCpuStatPrintDelegate delegate; private VmRef vm; private List<VmCpuStat> cpuStats; + @BeforeClass + public static void setUpBeforeClass() { + defaultLocale = Locale.getDefault(); + Locale.setDefault(Locale.US); + } + + @AfterClass + public static void tearDownAfterClass() { + Locale.setDefault(defaultLocale); + } + @Before public void setUp() { setupDAOs();