package org.darkphoenixs.pool.redis;

import org.junit.Test;

public class RedisSentinelConnPoolTest {

	@Test
	public void test() throws Exception {
		
	}
}

@@ -42,112 +42,1368 @@
 ort 
-org.junit.Test;%0A%0Apublic class RedisSentinelConnPoolTest %7B%0A%0A%09@Test%0A%09public void test() throws Exception %7B
+java.io.IOException;%0Aimport java.net.ServerSocket;%0Aimport java.util.Properties;%0A%0Aimport org.darkphoenixs.pool.PoolConfig;%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0A%0Apublic class RedisSentinelConnPoolTest %7B%0A%0A%09@Before%0A%09public void before() throws Exception %7B%0A%0A%09%09Thread th = new Thread(new Runnable() %7B%0A%0A%09%09%09private ServerSocket serverSocket;%0A%0A%09%09%09@Override%0A%09%09%09public void run() %7B%0A%0A%09%09%09%09try %7B%0A%09%09%09%09%09serverSocket = new ServerSocket(RedisConfig.DEFAULT_PORT);%0A%0A%09%09%09%09%09serverSocket.accept();%0A%0A%09%09%09%09%7D catch (IOException e) %7B%0A%09%09%09%09%09e.printStackTrace();%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D);%0A%0A%09%09th.setDaemon(true);%0A%09%09th.start();%0A%09%7D%0A%09%0A%09@Test%0A%09public void test() throws Exception %7B%0A%09%09%0A%09%09Properties properties = new Properties();%0A%09%09%0A//%09%09properties.setProperty(RedisConfig.MASTERNAME_PROPERTY, %22%22);%0A//%09%09properties.setProperty(RedisConfig.CONN_TIMEOUT_PROPERTY,%0A//%09%09%09%09RedisConfig.DEFAULT_TIMEOUT + %22%22);%0A//%09%09properties.setProperty(RedisConfig.SO_TIMEOUT_PROPERTY,%0A//%09%09%09%09RedisConfig.DEFAULT_TIMEOUT + %22%22);%0A//%09%09properties.setProperty(RedisConfig.DATABASE_PROPERTY,%0A//%09%09%09%09RedisConfig.DEFAULT_DATABASE + %22%22);%0A//%09%09properties.setProperty(RedisConfig.CLIENTNAME_PROPERTY, %22Test%22);%0A//%09%09properties.setProperty(RedisConfig.PASSWORD_PROPERTY, %22Test%22);%0A%0A%09%09try %7B%0A%09%09%09RedisSentinelConnPool pool = new RedisSentinelConnPool(new PoolConfig(), properties);%0A%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09// TODO: handle exception%0A%09%09%7D
 %0A%09%09%0A

add testcase