@@ -0,0 +1,3176 @@
+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 TeamPageApplyTeamFormTest %7B%0A%0A    @Test%0A    public void testGetTeamName() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        assertThat(one.getTeamName(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetLoginEmail() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        one.setTeamName(str);%0A        assertThat(one.getTeamName(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testGetTeamDescription() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        assertThat(one.getTeamDescription(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetTeamDescription() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        one.setTeamDescription(str);%0A        assertThat(one.getTeamDescription(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testGetTeamWebsite() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        assertThat(one.getTeamDescription(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetTeamWebsite() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        one.setTeamWebsite(str);%0A        assertThat(one.getTeamWebsite(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testGetTeamOrganizationType() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        assertThat(one.getTeamOrganizationType(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetTeamOrganizationType() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        one.setTeamOrganizationType(str);%0A        assertThat(one.getTeamOrganizationType(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testGetTeamIsPublic() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        assertThat(one.getIsPublic(), is(TeamVisibility.PUBLIC.toString()));%0A    %7D%0A%0A    @Test%0A    public void testSetTeamIsPublic() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        one.setIsPublic(TeamVisibility.PRIVATE.toString());%0A        assertThat(one.getIsPublic(), is(TeamVisibility.PRIVATE.toString()));%0A    %7D%0A%0A    @Test%0A    public void testGetTeamHasAcceptTeamOwnerPolicy() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        assertThat(one.getHasAcceptTeamOwnerPolicy(), is(false));%0A    %7D%0A%0A    @Test%0A    public void testSetTeamHasAcceptTeamOwnerPolicy() %7B%0A        final TeamPageApplyTeamForm one = new TeamPageApplyTeamForm();%0A        one.setHasAcceptTeamOwnerPolicy(true);%0A        assertThat(one.getHasAcceptTeamOwnerPolicy(), is(true));%0A    %7D%0A%0A%7D%0A

add team page apply team form tests