Exemplo n.º 1
0
 @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);
 }
Exemplo n.º 2
0
 @Test
 public final void testServerHostnameString() {
   String hostname = "localhost";
   config.serverHostname(hostname);
   assertTrue("Failed to retrieve set hostname", config.serverHostname().equals(hostname));
 }