@@ -0,0 +1,1074 @@
+package data;%0A%0Aimport static org.junit.Assert.assertSame;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.Parameterized;%0Aimport org.junit.runners.Parameterized.Parameters;%0A%0Aimport org.omg.CORBA.StringHolder;%0A%0A@RunWith(Parameterized.class)%0Apublic class MemberValidatorEmailTest %7B%0A%09%0A%09String email;%0A%09boolean expected;%0A%09StringHolder messageHolder = new StringHolder();%0A%09%0A%09public MemberValidatorEmailTest(boolean expected, String email) %7B%0A%09%09this.email = email;%0A%09%09this.expected = expected;%0A%09%7D%0A%09%0A%09@Parameters%0A%09public static List%3CObject%5B%5D%3E getParams() %7B%0A%09%09return Arrays.asList(new Object%5B%5D%5B%5D%7B%0A%09%09%09%09// Null or Empty are valid for us, might not be for you.%0A%09%09%09%09%7Btrue, null %7D,%0A%09%09%09%09%7Btrue, %22%22 %7D,%0A%09%09%09%09// From short to long, roughly%0A%09%09%09%09%7Btrue, %22a@b.co%22%7D,%0A%09%09%09%09%7Bfalse, %22a at b.co%22 %7D,%0A%09%09%09%09%7Btrue, %22a.b.c@d.e.f.com%22%7D,%0A%09%09%09%09%7Btrue, %22ketchup@mcdonalds.infomaterial%22%7D,%0A%09%09%09%09%7Bfalse, %22a-b@c.com%22%7D,%09%09%09%0A%09%09%7D);%0A%09%7D%09%0A%09%0A%09@Test%0A%09public void test() %7B%0A%09%09assertSame(expected, MemberHome.validateEmail(email, messageHolder));%0A%09%7D%0A%0A%7D%0A

Bring in the email validation test too.