@Test public void test_getters_ext() throws Exception { Server s = new Server("a", 999); assertNotNull(s.getHost()); assertEquals(s.getHost(), "a"); assertEquals(s.getPort(), 999); }
@Test public void test_asProperties() throws Exception { Server s = new Server("a"); Properties p = s.asProperties(); assertNotNull(p.getProperty(Server.OMERO_HOST)); assertNotNull(p.getProperty(Server.OMERO_PORT)); assertEquals(p.getProperty(Server.OMERO_HOST), "a"); assertEquals(p.getProperty(Server.OMERO_PORT), "1099"); }