javaee-samples / javaee7-samples

Java EE 7 Samples
https://travis-ci.org/javaee-samples/javaee7-samples
Other
2.5k stars 1.66k forks source link

MalformedURL exception when try to run tests #470

Open sroui opened 3 years ago

sroui commented 3 years ago

I have followed the video included in the README.md which explains how to run the samples.

First, I have run the command mvn clean install -Dmaven-skip-test=true in the root directory of the project and I started wildfly server. Then I have executed the following command 'mvn clean install -Pwildfly-remote in the module servlet/cookies in order to see if the tests run successfully, but I got this error:

[INFO] Results: [INFO] [ERROR] Errors: [ERROR] SimpleServletTest.testCookies:46 » MalformedURL For input string: "8080TestSer... [ERROR] SimpleServletTest.testHttpOnlyCookies:58 » MalformedURL For input string: "808... [INFO] [ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0

I have done a search on how to solve this problem, unfortonatly, I have not find any.

Capture Capture

Thank you for your help!

arjantijms commented 3 years ago

Quickly glancing at this, I guess this has to do with the injected URL in Arquillian tests ending with either a / or not. Maybe WildFly changed something here, or maybe the test code changed something here and hasn't been tested on wildly for a long time.

I'll try to take a look soon.