Class EMailTests


  • public class EMailTests
    extends Object
    EMail tests.
    • Constructor Detail

      • EMailTests

        public EMailTests()
        Default constructor.
    • Method Detail

      • emailOk0

        @ParameterizedTest
        @ValueSource(strings={"u@example.com","a@a.de","user@[192.168.1.1]","user@[ipv6:00fd:0000:0000:0000:0000:0000:0000:0000]","1234567890123456789012345678901234567890123456789012345678901234@example.com","a@abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcde.com"})
        public void emailOk0​(String email)
        Test EMail with valid email addresses.
        Parameters:
        email - Email
      • emailLength

        @ParameterizedTest
        @ValueSource(strings={"a@a.d","12345678901234567890123456789012345678901234567890123456789012345@example.com","a@abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdefghijklmnopqrstuvwxyz.abcdef.com"})
        public void emailLength​(String email)
        Test EMail with email to short or long.
        Parameters:
        email - EMail
      • emailWithMissingAt

        @Test
        public void emailWithMissingAt()
        Test EMail with missing @.
      • emailWithIpAndMissingCloseSquareBracket

        @Test
        public void emailWithIpAndMissingCloseSquareBracket()
        Test EMail with ip and missing close square bracket.
      • emailWithComment0

        @Test
        public void emailWithComment0()
        Test EMail with comments.
      • emailWithComment1

        @Test
        public void emailWithComment1()
        Test EMail with comments.
      • emailWithDoubleQuotes

        @Test
        public void emailWithDoubleQuotes()
        Test EMail with double quotes.
      • emailWithDotAtStart

        @Test
        public void emailWithDotAtStart()
        Test EMail with dot at start.
      • emailWithDotAtEnd

        @Test
        public void emailWithDotAtEnd()
        Test EMail with dot at end.
      • emailWithDoubleDot

        @Test
        public void emailWithDoubleDot()
        Test EMail with double dot.
      • emailWithIllegalCharacters0

        @Test
        public void emailWithIllegalCharacters0()
        Test EMail with illegal characters.
      • getEMail

        @Test
        public void getEMail()
        Test get email.
      • testHashCode

        @Test
        public void testHashCode()
        Test hash code.
      • testEquals

        @Test
        public void testEquals()
        Test equals.
      • testToString

        @Test
        public void testToString()
        Test toString.
      • testCompareTo

        @Test
        public void testCompareTo()
        Test compareTo.