[bisq-network/bisq] Validate phone numbers (#3134)

Stan notifications at github.com
Sat Aug 24 15:02:22 UTC 2019


ghubstan commented on this pull request.



> +import static org.junit.Assert.assertTrue;
+
+public class PhoneNumberValidatorTest {
+    private PhoneNumberValidator validator;
+    private ValidationResult validationResult;
+
+    @Before
+    public void setup() {
+        Res.setup();
+    }
+
+    @Test
+    public void testNoInput() {
+        validator = new PhoneNumberValidator("AT");
+        validationResult = validator.validate("");
+        assertFalse("'' should not be a valid number in AT", validationResult.isValid);

I didn't create a custom assertion; I think test names and framework's existing assertions are sufficient.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/3134#discussion_r317364107
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190824/6c85ba94/attachment.html>


More information about the bisq-github mailing list