package net.ihe.xdrsrc.model;import net.ihe.gazelle.simulator.xdrsrc.model.SystemConfiguration;import org.testng.annotations.BeforeMethod;import org.testng.annotations.Test;import junit.framework.TestCase;/** *  * @author abderrazek boufahja * */public class SystemConfigurationTest extends TestCase {    	SystemConfiguration systemConfiguration;    public SystemConfigurationTest(String name) {        super(name);    }    @BeforeMethod    protected void setUp() throws Exception {        super.setUp();        systemConfiguration = new SystemConfiguration();    }    protected void tearDown() throws Exception {        super.tearDown();    }    @Test    public void testResponderStringString() {    	SystemConfiguration res = new SystemConfiguration("1", "2","3",9080,true);        assertEquals(res.getName(), "1");        assertEquals(res.getIp(), "2");        assertEquals(res.getUrl(), "2");        assertEquals(res.getPort(), 9080);        assertEquals(res.getSecure(), true);    }    @Test    public void testSetId() {        Integer i = new Integer(1);        systemConfiguration.setId(i);        assertEquals(systemConfiguration.getId(), i);    }    @Test    public void testSetIp() {        String string = new String("ss");        systemConfiguration.setIp(string);        assertEquals(systemConfiguration.getIp(), string);    }    @Test    public void testSetUrl() {        String ss = new String("ss");        systemConfiguration.setUrl(ss);        assertEquals(systemConfiguration.getUrl(), ss);    }    @Test    public void testSetName() {        String ss = new String("ss");        systemConfiguration.setName(ss);        assertEquals(systemConfiguration.getName(), ss);    }        @Test    public void testSetPort() {        Integer port = 9080;        systemConfiguration.setPort(port);        assertEquals(systemConfiguration.getName(), port);    }        @Test    public void testSetSecure() {        boolean secure = false;        systemConfiguration.setSecure(secure);        assertEquals(systemConfiguration.getSecure(), secure);    }        @Test    public void testEqualsObject() {    	SystemConfiguration res1 = new SystemConfiguration("1", "2","3",9080,true);    	SystemConfiguration res2 = new SystemConfiguration("1", "2","3",9080,true);        assertEquals(res1, res2);    }}