Skip to content

Commit 4cae27c

Browse files
committed
Remove HTML-Unit helper methods.
1 parent 2220729 commit 4cae27c

File tree

2 files changed

+0
-34
lines changed

2 files changed

+0
-34
lines changed
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package io.jenkins.plugins.util;
22

3-
import org.junit.BeforeClass;
43
import org.junit.ClassRule;
54
import org.jvnet.hudson.test.JenkinsRule;
6-
import org.jvnet.hudson.test.JenkinsRule.WebClient;
75

86
/**
97
* Base class for integration tests in Jenkins. Sub classes will get a new and fresh Jenkins instance for each test
@@ -20,19 +18,4 @@ public abstract class IntegrationTestWithJenkinsPerSuite extends IntegrationTest
2018
protected JenkinsRule getJenkins() {
2119
return JENKINS_PER_SUITE;
2220
}
23-
24-
private static WebClient noJsWebClient;
25-
private static WebClient jsEnabledClient;
26-
27-
/** Creates two web clients, one with and one without JS support. */
28-
@BeforeClass
29-
public static void createWebClients() {
30-
noJsWebClient = create(JENKINS_PER_SUITE, false);
31-
jsEnabledClient = create(JENKINS_PER_SUITE, true);
32-
}
33-
34-
@Override
35-
protected WebClient getWebClient(final JavaScriptSupport javaScriptSupport) {
36-
return javaScriptSupport == JavaScriptSupport.JS_DISABLED ? noJsWebClient : jsEnabledClient;
37-
}
3821
}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
package io.jenkins.plugins.util;
22

3-
import org.junit.Before;
43
import org.junit.Rule;
54
import org.jvnet.hudson.test.JenkinsRule;
6-
import org.jvnet.hudson.test.JenkinsRule.WebClient;
75

86
/**
97
* Base class for integration tests in Jenkins. Sub classes will get a new and fresh Jenkins instance for each
@@ -20,19 +18,4 @@ public abstract class IntegrationTestWithJenkinsPerTest extends IntegrationTest
2018
protected JenkinsRule getJenkins() {
2119
return jenkinsPerTest;
2220
}
23-
24-
private WebClient noJsWebClient;
25-
private WebClient jsEnabledClient;
26-
27-
/** Creates two web clients, one with and one without JS support. */
28-
@Before
29-
public void createWebClients() {
30-
noJsWebClient = create(jenkinsPerTest, false);
31-
jsEnabledClient = create(jenkinsPerTest, true);
32-
}
33-
34-
@Override
35-
protected WebClient getWebClient(final JavaScriptSupport javaScriptSupport) {
36-
return javaScriptSupport == JavaScriptSupport.JS_DISABLED ? noJsWebClient : jsEnabledClient;
37-
}
3821
}

0 commit comments

Comments
 (0)