diff --git a/pom.xml b/pom.xml index a9224a67..1b4736e7 100644 --- a/pom.xml +++ b/pom.xml @@ -58,10 +58,6 @@ io.jenkins.plugins gitlab-api - - org.jenkins-ci.plugins - apache-httpcomponents-client-4-api - org.jenkins-ci.plugins branch-api diff --git a/src/test/java/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServerTest.java b/src/test/java/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServerTest.java index 1348860e..5b73be07 100644 --- a/src/test/java/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServerTest.java +++ b/src/test/java/io/jenkins/plugins/gitlabserverconfig/servers/GitLabServerTest.java @@ -7,7 +7,6 @@ import static org.junit.Assert.assertEquals; import java.io.IOException; -import org.apache.http.HttpStatus; import org.htmlunit.html.HtmlPage; import org.junit.ClassRule; import org.junit.Test; @@ -79,8 +78,7 @@ public void testGetDoCheckServerUrl() throws IOException, SAXException { HtmlPage page = wc.goTo( "descriptorByName/io.jenkins.plugins.gitlabserverconfig.servers.GitLabServer/checkServerUrl?serverUrl=http://attacker.example.com"); assertEquals( - HttpStatus.SC_NOT_FOUND, - page.getWebResponse().getStatusCode()); // Should be 405 but Stapler doesn't work that way. + 404, page.getWebResponse().getStatusCode()); // Should be 405 but Stapler doesn't work that way. } } }