Skip to content

Commit

Permalink
Remove HTML-Unit helper methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Feb 14, 2022
1 parent 2220729 commit 4cae27c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package io.jenkins.plugins.util;

import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.JenkinsRule.WebClient;

/**
* Base class for integration tests in Jenkins. Sub classes will get a new and fresh Jenkins instance for each test
Expand All @@ -20,19 +18,4 @@ public abstract class IntegrationTestWithJenkinsPerSuite extends IntegrationTest
protected JenkinsRule getJenkins() {
return JENKINS_PER_SUITE;
}

private static WebClient noJsWebClient;
private static WebClient jsEnabledClient;

/** Creates two web clients, one with and one without JS support. */
@BeforeClass
public static void createWebClients() {
noJsWebClient = create(JENKINS_PER_SUITE, false);
jsEnabledClient = create(JENKINS_PER_SUITE, true);
}

@Override
protected WebClient getWebClient(final JavaScriptSupport javaScriptSupport) {
return javaScriptSupport == JavaScriptSupport.JS_DISABLED ? noJsWebClient : jsEnabledClient;
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
package io.jenkins.plugins.util;

import org.junit.Before;
import org.junit.Rule;
import org.jvnet.hudson.test.JenkinsRule;
import org.jvnet.hudson.test.JenkinsRule.WebClient;

/**
* Base class for integration tests in Jenkins. Sub classes will get a new and fresh Jenkins instance for each
Expand All @@ -20,19 +18,4 @@ public abstract class IntegrationTestWithJenkinsPerTest extends IntegrationTest
protected JenkinsRule getJenkins() {
return jenkinsPerTest;
}

private WebClient noJsWebClient;
private WebClient jsEnabledClient;

/** Creates two web clients, one with and one without JS support. */
@Before
public void createWebClients() {
noJsWebClient = create(jenkinsPerTest, false);
jsEnabledClient = create(jenkinsPerTest, true);
}

@Override
protected WebClient getWebClient(final JavaScriptSupport javaScriptSupport) {
return javaScriptSupport == JavaScriptSupport.JS_DISABLED ? noJsWebClient : jsEnabledClient;
}
}

0 comments on commit 4cae27c

Please sign in to comment.