package skrueger.geotools.io; import static org.junit.Assert.assertEquals; import org.junit.Test; import schmitzm.junit.TestingClass; public class GsServerSettingsTest extends TestingClass { @Test public void testParsePropertiesString() { GsServerSettings s = new GsServerSettings(); s.setUrl("http://localhost:8085/gs"); s.setUsername("admin"); s.setPassword("geoserver"); String ps = s.toPropertiesString(); GsServerSettings s2 = new GsServerSettings(ps); assertEquals(ps, s2.toPropertiesString()); assertEquals(s.getTitle(), s2.getTitle()); assertEquals(s.getUsername(), s2.getUsername()); assertEquals(s.getPassword(), s2.getPassword()); } }