@Test public final void testServerHostnameNullString() { String hostname = null; config.serverHostname(hostname); assertTrue( "Hostname is not String (nulls and others should not be allowed)", config.serverHostname() instanceof java.lang.String); }
@Test public final void testServerHostnameString() { String hostname = "localhost"; config.serverHostname(hostname); assertTrue("Failed to retrieve set hostname", config.serverHostname().equals(hostname)); }