public void testBug11879() throws Exception {
  if (runMultiHostTests()) {
    Connection replConn=null;
    try {
      replConn=getMasterSlaveReplicationConnection();
      replConn.setReadOnly(true);
      replConn.setReadOnly(false);
    }
  finally {
      if (replConn != null) {
        replConn.close();
      }
    }
  }
}

public void testBug11879 ( ) throws Exception { if ( runMultiHostTests ( ) ) { Connection replConn = null ; try { replConn = getMasterSlaveReplicationConnection ( ) ; replConn . setReadOnly ( true ) ; replConn . setReadOnly ( false ) ; } finally { if ( replConn != null ) { replConn . close ( ) ; } } } }
tests fix for bug # 11879 - - replicationconnection won ' t switch to slave , throws " catalog can ' t be null " exception .
