@@ -0,0 +1,755 @@
+package fr.openwide.core.test.commons.util.validator;%0A%0Aimport org.junit.Assert;%0Aimport org.junit.Test;%0A%0Aimport fr.openwide.core.commons.util.validator.PermissivePhoneNumberValidator;%0A%0Apublic class TestPermissivePhoneNumberValidator %7B%0A%0A%09@Test%0A%09public void testValidation() %7B%0A%09%09Assert.assertTrue(PermissivePhoneNumberValidator.getInstance().isValid(%22+1 (555) 555-5555%22));%0A%09%09Assert.assertTrue(PermissivePhoneNumberValidator.getInstance().isValid(%22+33 3 33 33 33 33%22));%0A%09%09Assert.assertFalse(PermissivePhoneNumberValidator.getInstance().isValid(%22++3 3 33 33 33 33%22));%0A%09%09Assert.assertFalse(PermissivePhoneNumberValidator.getInstance().isValid(%2233 3 33 33 33 33+%22));%0A%09%09Assert.assertFalse(PermissivePhoneNumberValidator.getInstance().isValid(%22some text%22));%0A%09%7D%0A%0A%7D%0A

Test unitaire associé au nouveau validator permissif sur les numéros de téléphone.