Class HttpFileRequesterTest

java.lang.Object
com.googlecode.download.maven.plugin.internal.HttpFileRequesterTest

public class HttpFileRequesterTest extends Object
Unit tests for HttpFileRequester
Author:
Andrzej Jarmoniuk
  • Field Details

    • outputDirectory

      public org.junit.rules.TemporaryFolder outputDirectory
    • wireMock

      public com.github.tomakehurst.wiremock.junit.WireMockRule wireMock
  • Constructor Details

    • HttpFileRequesterTest

      public HttpFileRequesterTest()
  • Method Details

    • setUp

      public void setUp() throws Exception
      Throws:
      Exception
    • testNoAuth

      public void testNoAuth() throws Exception
      Tests HttpFileRequester.download(File, List) with no authentication
      Throws:
      Exception - thrown if HttpFileRequester creation fails
    • testBasicAuth

      public void testBasicAuth() throws Exception
      Tests HttpFileRequester.download(File, List) with basic authentication
      Throws:
      Exception - thrown if HttpFileRequester creation fails
    • testBasicAuthPreempt

      public void testBasicAuthPreempt() throws Exception
      Tests HttpFileRequester.download(File, List) with preemptive basic authentication
      Throws:
      Exception - thrown if HttpFileRequester creation fails
    • testDownloadFailure

      public void testDownloadFailure()
      Tests HttpFileRequester.download(File, List) should throw a DownloadFailureException if the download fails