javaee7-samples
javaee7-samples copied to clipboard
MalformedURL exception when try to run tests
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
Thank you for your help!
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.