Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-408

ITs for #testSecuredGet() fail with Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5, 2.6, 2.10
    • 2.12
    • None

    Description

      org.apache.maven.wagon.providers.http.LightweightHttpWagonWithPreemptiveAuthenticationTest.xml
      <testcase name="testSecuredGet" classname="org.apache.maven.wagon.providers.http.LightweightHttpWagonWithPreemptiveAuthenticationTest" time="0.148">
          <failure message="not 1 security handler use [] expected:&lt;1&gt; but was:&lt;0&gt;" type="junit.framework.AssertionFailedError"><![CDATA[junit.framework.AssertionFailedError: not 1 security handler use [] expected:<1> but was:<0>
      	at junit.framework.Assert.fail(Assert.java:47)
      	at junit.framework.Assert.failNotEquals(Assert.java:283)
      	at junit.framework.Assert.assertEquals(Assert.java:64)
      	at junit.framework.Assert.assertEquals(Assert.java:195)
      	at org.apache.maven.wagon.http.HttpWagonTestCase.testPreemptiveAuthentication(HttpWagonTestCase.java:1545)
      	at org.apache.maven.wagon.http.HttpWagonTestCase.testPreemptiveAuthenticationGet(HttpWagonTestCase.java:1532)
      	at org.apache.maven.wagon.http.HttpWagonTestCase.runTestSecuredGet(HttpWagonTestCase.java:1066)
      	at org.apache.maven.wagon.http.HttpWagonTestCase.testSecuredGet(HttpWagonTestCase.java:1027)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at junit.framework.TestCase.runTest(TestCase.java:168)
      	at junit.framework.TestCase.runBare(TestCase.java:134)
      	at junit.framework.TestResult$1.protect(TestResult.java:110)
      	at junit.framework.TestResult.runProtected(TestResult.java:128)
      	at junit.framework.TestResult.run(TestResult.java:113)
      	at junit.framework.TestCase.run(TestCase.java:124)
      	at junit.framework.TestSuite.runTest(TestSuite.java:243)
      	at junit.framework.TestSuite.run(TestSuite.java:238)
      	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:83)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153)
      	at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124)
      	at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200)
      	at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153)
      	at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
      ]]></failure>
          <system-out>http://localhost:58257 - Session: Opened  
      attempting to create parent directories for destination: wagon-test1432980426073514145txt
      Downloading: test-secured-resource from http://localhost:58257
      
      #
      Transfer finished. 10 bytes copied in 0.0 seconds
      http://localhost:58257 - Session: Disconnecting  
      http://localhost:58257 - Session: Disconnected
      </system-out>
          <system-err>2014-01-02 15:13:33.461:INFO::jetty-6.1.26
      2014-01-02 15:13:33.461:INFO::Started SocketConnector@0.0.0.0:58257
      2014-01-02 15:13:33.484:INFO::Stopped SocketConnector@0.0.0.0:58257
      </system-err>
        </testcase>
      

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              rfscholte Robert Scholte
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: