Пример #1
0
 @Test
 public void checkTest_InvalidEmailDoubleDot_ReturnsFalse() {
   assertFalse(
       TextChecker.checkText("*****@*****.**", InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS));
 }
Пример #2
0
 @Test
 public void isNumeric_ReturnsFalse() {
   assertFalse(TextChecker.isNumeric(mAlphaNumeric));
 }
Пример #3
0
 @Test
 public void checkTest_CorrectEmailSubDomain_ReturnsTrue() {
   assertTrue(
       TextChecker.checkText("*****@*****.**", InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS));
 }
Пример #4
0
 @Test
 public void hasIllegalChars_ReturnsFalse() {
   assertFalse(TextChecker.hasIlegalChars(mAlphaNumeric));
 }
Пример #5
0
 @Test
 public void isNumeric_ReturnsTrue() {
   assertTrue(TextChecker.isNumeric(mNumeric));
 }
Пример #6
0
 @Test
 public void emptyString_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper(""));
 }
Пример #7
0
 @Test
 public void hasIllegalChars_ReturnsTrue() {
   assertTrue(TextChecker.hasIlegalChars(mSpecialCharacters));
 }
Пример #8
0
 @Test
 public void invalidEmailDoubleDot_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper("*****@*****.**"));
 }
Пример #9
0
 @Test
 public void invalidEmailNoUsername_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper("@email.com"));
 }
Пример #10
0
 @Test
 public void correctEmailSubDomain_ReturnsTrue() {
   assertTrue(TextChecker.checkIfEmailProper("*****@*****.**"));
 }
Пример #11
0
 @Test
 public void invalidEmailNoTld_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper("name@email"));
 }
Пример #12
0
 @Test
 public void correctEmailSimple_ReturnsTrue() {
   assertTrue(TextChecker.checkIfEmailProper("*****@*****.**"));
 }
Пример #13
0
 @Test
 public void checkText_PostalAddress_ReturnTrue() {
   assertTrue(TextChecker.checkText(mAlphaNumeric, InputType.TYPE_TEXT_VARIATION_POSTAL_ADDRESS));
 }
Пример #14
0
 @Test
 public void checkText_PersonName_ReturnFalse() {
   assertFalse(
       TextChecker.checkText(mSpecialCharacters, InputType.TYPE_TEXT_VARIATION_PERSON_NAME));
 }
Пример #15
0
 @Test
 public void checkText_PersonName_ReturnTrue() {
   assertTrue(TextChecker.checkText(mPersonName, InputType.TYPE_TEXT_VARIATION_PERSON_NAME));
 }
Пример #16
0
 @Test
 public void checkText_PhoneNumber_ReturnFalse() {
   assertFalse(TextChecker.checkText(mAlphaNumeric, InputType.TYPE_CLASS_PHONE));
 }