Esempio n. 1
0
 @Test
 public void emptyString_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper(""));
 }
Esempio n. 2
0
 @Test
 public void invalidEmailNoUsername_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper("@email.com"));
 }
Esempio n. 3
0
 @Test
 public void invalidEmailDoubleDot_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper("*****@*****.**"));
 }
Esempio n. 4
0
 @Test
 public void invalidEmailNoTld_ReturnsFalse() {
   assertFalse(TextChecker.checkIfEmailProper("name@email"));
 }
Esempio n. 5
0
 @Test
 public void correctEmailSubDomain_ReturnsTrue() {
   assertTrue(TextChecker.checkIfEmailProper("*****@*****.**"));
 }
Esempio n. 6
0
 @Test
 public void correctEmailSimple_ReturnsTrue() {
   assertTrue(TextChecker.checkIfEmailProper("*****@*****.**"));
 }