@@ -0,0 +1,1628 @@
+package sg.ncl.testbed_interface;%0A%0Aimport org.apache.commons.lang3.RandomStringUtils;%0Aimport org.junit.Test;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.nullValue;%0Aimport static org.hamcrest.core.Is.is;%0A%0A/**%0A * @author Te Ye%0A */%0Apublic class LoginFormTest %7B%0A%0A    @Test%0A    public void testGetLoginEmail() %7B%0A        final LoginForm loginForm = new LoginForm();%0A        assertThat(loginForm.getLoginEmail(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetLoginEmail() %7B%0A        final LoginForm loginForm = new LoginForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        loginForm.setLoginEmail(str);%0A        assertThat(loginForm.getLoginEmail(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testGetPassword() %7B%0A        final LoginForm loginForm = new LoginForm();%0A        assertThat(loginForm.getLoginEmail(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetPassword() %7B%0A        final LoginForm loginForm = new LoginForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        loginForm.setLoginPassword(str);%0A        assertThat(loginForm.getLoginPassword(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testGetErrorMsg() %7B%0A        final LoginForm loginForm = new LoginForm();%0A        assertThat(loginForm.getErrorMsg(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetErrorMsg() %7B%0A        final LoginForm loginForm = new LoginForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        loginForm.setErrorMsg(str);%0A        assertThat(loginForm.getErrorMsg(), is(str));%0A    %7D%0A%0A%7D%0A

add login form tests