From e2d2a4e20e256037abdecb88d4a2229d483db854 Mon Sep 17 00:00:00 2001 From: James Nord Date: Mon, 8 Jul 2024 12:10:08 +0100 Subject: [PATCH] remove unused imports --- .../credentials/casc/CredentialsCategoryTest.java | 1 - .../impl/CertificateCredentialsImplTest.java | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/src/test/java/com/cloudbees/plugins/credentials/casc/CredentialsCategoryTest.java b/src/test/java/com/cloudbees/plugins/credentials/casc/CredentialsCategoryTest.java index e59ad06e..236c0217 100644 --- a/src/test/java/com/cloudbees/plugins/credentials/casc/CredentialsCategoryTest.java +++ b/src/test/java/com/cloudbees/plugins/credentials/casc/CredentialsCategoryTest.java @@ -17,7 +17,6 @@ import static io.jenkins.plugins.casc.misc.Util.toYamlString; import io.jenkins.plugins.casc.model.CNode; import java.io.ByteArrayOutputStream; -import java.io.InputStream; import jenkins.model.GlobalConfiguration; import jenkins.model.GlobalConfigurationCategory; diff --git a/src/test/java/com/cloudbees/plugins/credentials/impl/CertificateCredentialsImplTest.java b/src/test/java/com/cloudbees/plugins/credentials/impl/CertificateCredentialsImplTest.java index 97ff01fd..36782545 100644 --- a/src/test/java/com/cloudbees/plugins/credentials/impl/CertificateCredentialsImplTest.java +++ b/src/test/java/com/cloudbees/plugins/credentials/impl/CertificateCredentialsImplTest.java @@ -26,15 +26,12 @@ import com.cloudbees.hudson.plugins.folder.Folder; import com.cloudbees.hudson.plugins.folder.properties.FolderCredentialsProvider; -import com.cloudbees.plugins.credentials.Credentials; import com.cloudbees.plugins.credentials.CredentialsNameProvider; import com.cloudbees.plugins.credentials.CredentialsProvider; import com.cloudbees.plugins.credentials.CredentialsStore; import com.cloudbees.plugins.credentials.SecretBytes; -import com.cloudbees.plugins.credentials.SystemCredentialsProvider; import com.cloudbees.plugins.credentials.common.CertificateCredentials; import com.cloudbees.plugins.credentials.common.StandardCertificateCredentials; -import com.cloudbees.plugins.credentials.domains.Domain; import org.htmlunit.FormEncodingType; import org.htmlunit.HttpMethod; import org.htmlunit.Page; @@ -49,15 +46,10 @@ import org.htmlunit.html.HtmlPage; import org.htmlunit.html.HtmlRadioButtonInput; -import hudson.FilePath; import hudson.Util; -import hudson.cli.CLICommandInvoker; -import hudson.cli.UpdateJobCommand; import hudson.model.ItemGroup; -import hudson.model.Job; import hudson.security.ACL; import hudson.util.Secret; -import jenkins.model.Jenkins; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; import org.junit.Before; @@ -66,7 +58,6 @@ import org.junit.rules.TemporaryFolder; import org.jvnet.hudson.test.Issue; import org.jvnet.hudson.test.JenkinsRule; -import org.jvnet.hudson.test.recipes.LocalData; import java.io.File; import java.io.IOException; @@ -76,11 +67,8 @@ import java.nio.file.Files; import java.security.KeyStore; import java.util.Base64; -import java.util.Collections; import java.util.List; -import static hudson.cli.CLICommandInvoker.Matcher.failedWith; -import static hudson.cli.CLICommandInvoker.Matcher.succeeded; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.hasSize; import static org.junit.Assert.*;