File tree Expand file tree Collapse file tree 2 files changed +0
-34
lines changed
src/test/java/io/jenkins/plugins/util Expand file tree Collapse file tree 2 files changed +0
-34
lines changed Original file line number Diff line number Diff line change 1
1
package io .jenkins .plugins .util ;
2
2
3
- import org .junit .BeforeClass ;
4
3
import org .junit .ClassRule ;
5
4
import org .jvnet .hudson .test .JenkinsRule ;
6
- import org .jvnet .hudson .test .JenkinsRule .WebClient ;
7
5
8
6
/**
9
7
* 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
20
18
protected JenkinsRule getJenkins () {
21
19
return JENKINS_PER_SUITE ;
22
20
}
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
- }
38
21
}
Original file line number Diff line number Diff line change 1
1
package io .jenkins .plugins .util ;
2
2
3
- import org .junit .Before ;
4
3
import org .junit .Rule ;
5
4
import org .jvnet .hudson .test .JenkinsRule ;
6
- import org .jvnet .hudson .test .JenkinsRule .WebClient ;
7
5
8
6
/**
9
7
* 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
20
18
protected JenkinsRule getJenkins () {
21
19
return jenkinsPerTest ;
22
20
}
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
- }
38
21
}
You can’t perform that action at this time.
0 commit comments