Exemplo n.º 1
0
 @Test
 public void checkTest_InvalidEmailDoubleDot_ReturnsFalse() {
   assertFalse(
       TextChecker.checkText("*****@*****.**", InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS));
 }
Exemplo n.º 2
0
 @Test
 public void checkTest_CorrectEmailSubDomain_ReturnsTrue() {
   assertTrue(
       TextChecker.checkText("*****@*****.**", InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS));
 }
Exemplo n.º 3
0
 @Test
 public void checkText_PostalAddress_ReturnTrue() {
   assertTrue(TextChecker.checkText(mAlphaNumeric, InputType.TYPE_TEXT_VARIATION_POSTAL_ADDRESS));
 }
Exemplo n.º 4
0
 @Test
 public void checkText_PersonName_ReturnFalse() {
   assertFalse(
       TextChecker.checkText(mSpecialCharacters, InputType.TYPE_TEXT_VARIATION_PERSON_NAME));
 }
Exemplo n.º 5
0
 @Test
 public void checkText_PersonName_ReturnTrue() {
   assertTrue(TextChecker.checkText(mPersonName, InputType.TYPE_TEXT_VARIATION_PERSON_NAME));
 }
Exemplo n.º 6
0
 @Test
 public void checkText_PhoneNumber_ReturnFalse() {
   assertFalse(TextChecker.checkText(mAlphaNumeric, InputType.TYPE_CLASS_PHONE));
 }