@@ -0,0 +1,2126 @@
+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 ReservationStatusFormTest %7B%0A%0A    @Test%0A    public void testGetTeamId() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        assertThat(one.getTeamId(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testGetNumNodes() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        assertThat(one.getNumNodes(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testGetMachineType() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        assertThat(one.getMachineType(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testGetAction() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        assertThat(one.getAction(), is(nullValue()));%0A    %7D%0A%0A    @Test%0A    public void testSetTeamId() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        one.setTeamId(str);%0A        assertThat(one.getTeamId(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testSetNumNodes() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        final int num = Integer.parseInt(RandomStringUtils.randomNumeric(3));%0A        one.setNumNodes(num);%0A        assertThat(one.getNumNodes(), is(num));%0A    %7D%0A%0A    @Test%0A    public void testSetMachineType() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        one.setMachineType(str);%0A        assertThat(one.getMachineType(), is(str));%0A    %7D%0A%0A    @Test%0A    public void testSetAction() %7B%0A        final ReservationStatusForm one = new ReservationStatusForm();%0A        final String str = RandomStringUtils.randomAlphanumeric(20);%0A        one.setAction(str);%0A        assertThat(one.getAction(), is(str));%0A    %7D%0A%7D%0A

add reservation status form