LPS-29232

Updated ValidatorTest.java
Passed through host names (testlocalhost) and domains containing a period (testlocalhost.) at the end.


test-cmd:
    [junit] Running com.liferay.portal.kernel.util.ValidatorTest
    [junit] Testsuite: com.liferay.portal.kernel.util.ValidatorTest
    [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 0.461 sec
    [junit] Tests run: 22, Failures: 0, Errors: 0, Time elapsed: 0.461 sec