diff --git a/test/src/test/java/hudson/tools/JDKInstallerTest.java b/test/src/test/java/hudson/tools/JDKInstallerTest.java index 29d168c1d2385a72e295887c9f20d9e9c57cc11f..95ead8b9373791576ec58193ef927d3b22d49fad 100644 --- a/test/src/test/java/hudson/tools/JDKInstallerTest.java +++ b/test/src/test/java/hudson/tools/JDKInstallerTest.java @@ -2,7 +2,6 @@ package hudson.tools; import com.gargoylesoftware.htmlunit.html.HtmlForm; import com.gargoylesoftware.htmlunit.html.HtmlPage; -import hudson.model.DownloadService; import hudson.tools.JDKInstaller.DescriptorImpl; import org.jvnet.hudson.test.HudsonTestCase; import hudson.model.JDK; @@ -31,13 +30,10 @@ import org.xml.sax.SAXException; * @author Kohsuke Kawaguchi */ public class JDKInstallerTest extends HudsonTestCase { - boolean old; @Override protected void setUp() throws Exception { super.setUp(); - old = DownloadService.neverUpdate; - DownloadService.neverUpdate = false; File f = new File(new File(System.getProperty("user.home")),".jenkins-ci.org"); if (!f.exists()) { @@ -61,12 +57,6 @@ public class JDKInstallerTest extends HudsonTestCase { } } - @Override - protected void tearDown() throws Exception { - DownloadService.neverUpdate = old; - super.tearDown(); - } - public void testEnterCredential() throws Exception { HtmlPage p = createWebClient().goTo("/descriptorByName/hudson.tools.JDKInstaller/enterCredential"); HtmlForm form = p.getFormByName("postCredential");