commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Epstein, Ezra" <Ezra.Epst...@neustar.biz>
Subject Re: commons-vfs: org.apache.commons.vfs2.provider.http.test.HttpProviderTestCase fails
Date Tue, 22 Mar 2016 00:03:15 GMT
Fixed.

Root cause: defunct URL.

Resolution: changed
core/src/test/java/org/apache/commons/vfs2/provider/http/test/HttpProviderT
estCase.java
-        final FileObject f =
VFS.getManager().resolveFile("http://www.w3schools.com/webservices/tempconv
ert.asmx?action=WSDL");
+        final FileObject f =
VFS.getManager().resolveFile("http://www.w3schools.com/xml/tempconvert.asmx
?WSDL");

This change is included in this pull request:
https://github.com/apache/commons-vfs/pull/12

Thanks.



On 3/21/16, 2:38 PM, "Epstein, Ezra" <Ezra.Epstein@neustar.biz> wrote:

>I¹ve forked and cloned the repo from GitHub and the build fails with:
>
>
>Tests run: 90, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.223
>sec <<< FAILURE! - in
>org.apache.commons.vfs2.provider.http.test.HttpProviderTestCase
>
>testHttp405(org.apache.commons.vfs2.provider.http.test.HttpProviderTestCas
>e)  Time elapsed: 0.372 sec  <<< ERROR!
>
>org.apache.commons.vfs2.FileSystemException: Could not determine the size
>of 
>"https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3schools.com_web
>services_tempconvert.asmx-3Faction-3DWSDL&d=CwIF-g&c=MOptNlVtIETeDALC_lULr
>w&r=9ngOpEBwat_KiHSg9M3xkyMHuia8tJt2Xm_FJM4kW2k&m=t3roqrWYXA9F8pjA37BOeQ55
>13ko8_16DjglqWegJcU&s=rslzCFwAV2fJ5ueOkUgRVyrRlJXRHimOtzIhfvPcams&e= "
>because it is not a file.
>
>at 
>org.apache.commons.vfs2.provider.DefaultFileContent.getSize(DefaultFileCon
>tent.java:135)
>
>at 
>org.apache.commons.vfs2.provider.http.test.HttpProviderTestCase.testHttp40
>5(HttpProviderTestCase.java:208)
>
>at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
>at 
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
>62)
>
>at 
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
>pl.java:43)
>
>at java.lang.reflect.Method.invoke(Method.java:498)
>
>at 
>org.apache.commons.vfs2.test.AbstractProviderTestCase.runTest(AbstractProv
>iderTestCase.java:218)
>
>at junit.framework.TestCase.runBare(TestCase.java:141)
>
>at junit.framework.TestResult$1.protect(TestResult.java:122)
>
>at junit.framework.TestResult.runProtected(TestResult.java:142)
>
>at junit.framework.TestResult.run(TestResult.java:125)
>
>at junit.framework.TestCase.run(TestCase.java:129)
>
>at junit.framework.TestSuite.runTest(TestSuite.java:252)
>
>at junit.framework.TestSuite.run(TestSuite.java:247)
>
>at junit.extensions.TestDecorator.basicRun(TestDecorator.java:23)
>
>at 
>org.apache.commons.vfs2.test.AbstractTestSuite$1.protect(AbstractTestSuite
>.java:149)
>
>at junit.framework.TestResult.runProtected(TestResult.java:142)
>
>at 
>org.apache.commons.vfs2.test.AbstractTestSuite.run(AbstractTestSuite.java:
>154)
>
>at 
>org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
>86)
>
>at 
>org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.jav
>a:283)
>
>at 
>org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Pro
>vider.java:173)
>
>at 
>org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provi
>der.java:153)
>
>at 
>org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java
>:128)
>
>at 
>org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoa
>der(ForkedBooter.java:203)
>
>at 
>org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBoo
>ter.java:155)
>
>at 
>org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
>
>Š
>
>Tests in error:
>
>  
>HttpProviderTestCase>AbstractProviderTestCase.runTest:218->testHttp405:208
> » FileSystem
>
>
>Is this a known issue?


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message