1 20 package org.enhydra.barracuda.testbed; 21 22 import junit.framework.Test; 23 import junit.extensions.TestSetup; 24 25 import java.util.*; 26 27 public class LocaleTestSuiteSetup extends TestSetup { 33 34 38 44 public LocaleTestSuiteSetup(Test theTest, Locale theNewLocale) { 45 super(theTest); 46 this.myNewLocale = theNewLocale; 47 } 48 49 53 57 public void setUp() { 58 this.myOriginalLocale = Locale.getDefault(); 59 Locale.setDefault(this.myNewLocale); 60 } 61 62 public void tearDown() { 63 Locale.setDefault(this.myOriginalLocale); 64 } 65 66 70 74 private Locale myOriginalLocale = null; 75 private Locale myNewLocale = null; 76 77 81 } 82 | Popular Tags |