@@ -0,0 +1,3360 @@
+package sg.ncl.adapter.deterlab;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.springframework.test.web.client.MockRestServiceServer;%0Aimport org.springframework.web.client.RestTemplate;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * Created by Tran Ly Vu on 10/3/2016.%0A */%0Apublic class ConnectionPropertiesTest %7B%0A    private ConnectionProperties connectionProperties;%0A%0A    @Before%0A    public void setUp() throws Exception %7B%0A        connectionProperties=new ConnectionProperties();%0A    %7D%0A%0A%0A    @Test%0A    public void getterAndSetterTest()%7B%0A        connectionProperties.setIp(%22test1%22);%0A        connectionProperties.setPort(%22test2%22);%0A%0A        String actual1=connectionProperties.getIp();%0A        String actual2=connectionProperties.getPort();%0A%0A        assertEquals(%22test1%22,actual1);%0A        assertEquals(%22test2%22,actual2);%0A    %7D%0A%0A   @Test%0A    public void othersTest()%7B%0A       connectionProperties.setIp(%22test1%22);%0A       connectionProperties.setPort(%22test2%22);%0A%0A       String actual1= connectionProperties.getJoinProjectNewUsers();%0A       String actual2= connectionProperties.getJoinProject();%0A       String actual3= connectionProperties.getApplyProjectNewUsers();%0A       String actual4= connectionProperties.getCreateExperiment();%0A       String actual5= connectionProperties.startExperiment();%0A       String actual6= connectionProperties.stopExperiment() ;%0A       String actual7= connectionProperties.deleteExperiment();%0A       String actual8= connectionProperties.getUpdateCredentials();%0A       String actual9= connectionProperties.getApproveJoinRequest();%0A       String actual10= connectionProperties.getRejectJoinRequest();%0A       String actual11= connectionProperties.getApplyProject();%0A       String actual12= connectionProperties.getApproveProject();%0A       String actual13= connectionProperties.getRejectProject();%0A       String actual14= connectionProperties.getExpStatus();%0A%0A%0A       String expected1=%22http://test1:test2/joinProjectNewUsers%22;%0A       String expected2=%22http://test1:test2/joinProject%22;%0A       String expected3=%22http://test1:test2/applyProjectNewUsers%22;%0A       String expected4=%22http://test1:test2/createExperiment%22;%0A       String expected5=%22http://test1:test2/startExperiment%22;%0A       String expected6=%22http://test1:test2/stopExperiment%22;%0A       String expected7=%22http://test1:test2/deleteExperiment%22;%0A       String expected8=%22http://test1:test2/changePassword%22;%0A       String expected9=%22http://test1:test2/approveJoinRequest%22;%0A       String expected10=%22http://test1:test2/rejectJoinRequest%22;%0A       String expected11=%22http://test1:test2/applyProject%22;%0A       String expected12=%22http://test1:test2/approveProject%22;%0A       String expected13=%22http://test1:test2/rejectProject%22;%0A       String expected14=%22http://test1:test2/getExpStatus%22;%0A%0A%0A        assertEquals(expected1,actual1);%0A       assertEquals(expected2,actual2);%0A       assertEquals(expected3,actual3);%0A       assertEquals(expected4,actual4);%0A       assertEquals(expected5,actual5);%0A       assertEquals(expected6,actual6);%0A       assertEquals(expected7,actual7);%0A       assertEquals(expected8,actual8);%0A       assertEquals(expected9,actual9);%0A       assertEquals(expected10,actual10);%0A       assertEquals(expected11, actual11);%0A       assertEquals(expected12,actual12);%0A       assertEquals(expected13,actual13);%0A       assertEquals(expected14,actual14);%0A%0A    %7D%0A%0A%0A%0A%7D%0A

update unit testing for ConnectionProperties class in adapter-deterlab