예제 #1
0
 @Test
 public final void testServerPasswordNullString() {
   String password = null;
   config.serverPassword(password);
   assertTrue(
       "Password is not String (nulls and others should not be allowed)",
       config.serverPassword() instanceof java.lang.String);
 }
예제 #2
0
 @Test
 public final void testServerPasswordString() {
   String password = "******";
   config.serverPassword(password);
   assertTrue("Failed to retrieve set password", config.serverPassword().equals(password));
 }