These two URLs must be the same:
http:
http:
But using the 'equals ()' from the URL class, I understand that they are different. How can I compare them?
EDIT: Some background on this
I am creating a Selenium test for some URL mapping. I have an old url, the url to which it should be mapped, and the actual url. I need to compare the intended URL with the actual URL. A list of URLs is created by the client. Urls with the same parameters and values are considered valid if the list of parameters is the same and they all have the correct values (the order of these parameters does not matter)
source
share