// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java
// public class PoolConfig extends GenericObjectPoolConfig implements Serializable {
// 
//     /**
//      * DEFAULT_TEST_WHILE_IDLE
//      */
//     public static final boolean DEFAULT_TEST_WHILE_IDLE = true;
//     /**
//      * DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
//      */
//     public static final long DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS = 60000;
//     /**
//      * DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
//      */
//     public static final long DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS = 30000;
//     /**
//      * DEFAULT_NUM_TESTS_PER_EVICTION_RUN
//      */
//     public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN = -1;
//     /**
//      * serialVersionUID
//      */
//     private static final long serialVersionUID = -2414567557372345057L;
// 
//     /**
//      * <p>Title: PoolConfig</p>
//      * <p>Description: 默认构造方法</p>
//      */
//     public PoolConfig() {
// 
//         // defaults to make your life with connection pool easier :)
//         setTestWhileIdle(DEFAULT_TEST_WHILE_IDLE);
//         setMinEvictableIdleTimeMillis(DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS);
//         setTimeBetweenEvictionRunsMillis(DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS);
//         setNumTestsPerEvictionRun(DEFAULT_NUM_TESTS_PER_EVICTION_RUN);
//     }
// }


import org.darkphoenixs.pool.PoolConfig;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;
package org.darkphoenixs.pool.redis;




public class RedisClusterConnPoolTest {

    @Before
    public void before() throws Exception {

        Thread th = new Thread(new Runnable() {

            private ServerSocket serverSocket;

            @Override
            public void run() {

                try {
                    serverSocket = new ServerSocket(RedisConfig.DEFAULT_PORT);

                    serverSocket.accept();

// Path: src/main/java/org/darkphoenixs/pool/PoolConfig.java
// public class PoolConfig extends GenericObjectPoolConfig implements Serializable {
// 
//     /**
//      * DEFAULT_TEST_WHILE_IDLE
//      */
//     public static final boolean DEFAULT_TEST_WHILE_IDLE = true;
//     /**
//      * DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS
//      */
//     public static final long DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS = 60000;
//     /**
//      * DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS
//      */
//     public static final long DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS = 30000;
//     /**
//      * DEFAULT_NUM_TESTS_PER_EVICTION_RUN
//      */
//     public static final int DEFAULT_NUM_TESTS_PER_EVICTION_RUN = -1;
//     /**
//      * serialVersionUID
//      */
//     private static final long serialVersionUID = -2414567557372345057L;
// 
//     /**
//      * <p>Title: PoolConfig</p>
//      * <p>Description: 默认构造方法</p>
//      */
//     public PoolConfig() {
// 
//         // defaults to make your life with connection pool easier :)
//         setTestWhileIdle(DEFAULT_TEST_WHILE_IDLE);
//         setMinEvictableIdleTimeMillis(DEFAULT_MIN_EVICTABLE_IDLE_TIME_MILLIS);
//         setTimeBetweenEvictionRunsMillis(DEFAULT_TIME_BETWEEN_EVICTION_RUNS_MILLIS);
//         setNumTestsPerEvictionRun(DEFAULT_NUM_TESTS_PER_EVICTION_RUN);
//     }
// }


// Path: src/test/java/org/darkphoenixs/pool/redis/RedisClusterConnPoolTest.java
import org.darkphoenixs.pool.PoolConfig;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.JedisCluster;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.HashSet;
import java.util.Properties;
import java.util.Set;

package org.darkphoenixs.pool.redis;




public class RedisClusterConnPoolTest {

    @Before
    public void before() throws Exception {

        Thread th = new Thread(new Runnable() {

            private ServerSocket serverSocket;

            @Override
            public void run() {

                try {
                    serverSocket = new ServerSocket(RedisConfig.DEFAULT_PORT);

                    serverSocket.accept();

                } catch (IOException e) {