1 20 package org.apache.derbyTesting.junit; 21 22 import junit.extensions.TestSetup; 23 import junit.framework.Test; 24 25 final class ChangeConfigurationSetup extends TestSetup { 26 27 private final TestConfiguration config; 28 private TestConfiguration old; 29 30 ChangeConfigurationSetup(TestConfiguration config, Test test) 31 { 32 super(test); 33 this.config = config; 34 } 35 36 protected void setUp() 37 { 38 old = TestConfiguration.getCurrent(); 39 TestConfiguration.setCurrent(config); 40 } 41 42 protected void tearDown() 43 { 44 TestConfiguration.setCurrent(old); 45 } 46 } 47 | Popular Tags |