renamed Continous* to Continuous*
This commit is contained in:
@@ -25,7 +25,7 @@ import org.junit.Before;
|
||||
import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.springframework.data.gemfire.ForkUtil;
|
||||
import org.springframework.data.gemfire.listener.adapter.ContinousQueryListenerAdapter;
|
||||
import org.springframework.data.gemfire.listener.adapter.ContinuousQueryListenerAdapter;
|
||||
|
||||
import com.gemstone.gemfire.cache.RegionService;
|
||||
import com.gemstone.gemfire.cache.client.ClientCacheFactory;
|
||||
@@ -38,7 +38,7 @@ import com.gemstone.gemfire.cache.query.CqEvent;
|
||||
public class ListenerContainerTests {
|
||||
|
||||
private final BlockingDeque<CqEvent> bag = new LinkedBlockingDeque<CqEvent>();
|
||||
protected ContinousQueryListenerContainer container;
|
||||
protected ContinuousQueryListenerContainer container;
|
||||
|
||||
private static RegionService cache = null;
|
||||
private static Pool pool = null;
|
||||
@@ -49,7 +49,7 @@ public class ListenerContainerTests {
|
||||
}
|
||||
};
|
||||
|
||||
private final ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(handler);
|
||||
private final ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(handler);
|
||||
|
||||
@BeforeClass
|
||||
public static void startUp() throws Exception {
|
||||
@@ -92,12 +92,12 @@ public class ListenerContainerTests {
|
||||
public void setUp() throws Exception {
|
||||
String query = "SELECT * from /test-cq";
|
||||
|
||||
container = new ContinousQueryListenerContainer();
|
||||
container = new ContinuousQueryListenerContainer();
|
||||
container.setCache(cache);
|
||||
//container.setPoolName("client");
|
||||
container.setBeanName("container");
|
||||
container.afterPropertiesSet();
|
||||
container.addListener(new ContinousQueryDefinition("test", query, adapter));
|
||||
container.addListener(new ContinuousQueryDefinition("test", query, adapter));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
import org.springframework.context.support.GenericXmlApplicationContext;
|
||||
import org.springframework.data.gemfire.ForkUtil;
|
||||
import org.springframework.data.gemfire.listener.ContinousQueryListenerContainer;
|
||||
import org.springframework.data.gemfire.listener.ContinuousQueryListenerContainer;
|
||||
|
||||
import com.gemstone.gemfire.cache.Cache;
|
||||
import com.gemstone.gemfire.cache.client.Pool;
|
||||
@@ -51,7 +51,7 @@ public class ContainerXmlSetupTest {
|
||||
GenericXmlApplicationContext ctx = new GenericXmlApplicationContext(
|
||||
"/org/springframework/data/gemfire/listener/container.xml");
|
||||
|
||||
ContinousQueryListenerContainer container = ctx.getBean(ContinousQueryListenerContainer.class);
|
||||
ContinuousQueryListenerContainer container = ctx.getBean(ContinuousQueryListenerContainer.class);
|
||||
assertTrue(container.isRunning());
|
||||
|
||||
Cache cache = ctx.getBean("gemfire-cache", Cache.class);
|
||||
|
||||
@@ -37,11 +37,11 @@ import com.gemstone.gemfire.cache.query.internal.CqQueryImpl;
|
||||
*/
|
||||
public class QueryListenerAdapterTest {
|
||||
|
||||
private ContinousQueryListenerAdapter adapter;
|
||||
private ContinuousQueryListenerAdapter adapter;
|
||||
|
||||
@Before
|
||||
public void setUp() {
|
||||
adapter = new ContinousQueryListenerAdapter();
|
||||
adapter = new ContinuousQueryListenerAdapter();
|
||||
}
|
||||
|
||||
CqEvent event() {
|
||||
@@ -113,14 +113,14 @@ public class QueryListenerAdapterTest {
|
||||
|
||||
@Test
|
||||
public void testThatTheDefaultHandlingMethodNameIsTheConstantDefault() throws Exception {
|
||||
assertEquals(ContinousQueryListenerAdapter.ORIGINAL_DEFAULT_LISTENER_METHOD, adapter.getDefaultListenerMethod());
|
||||
assertEquals(ContinuousQueryListenerAdapter.ORIGINAL_DEFAULT_LISTENER_METHOD, adapter.getDefaultListenerMethod());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testAdapterWithListenerAndDefaultMessage() throws Exception {
|
||||
ContinuousQueryListener mock = mock(ContinuousQueryListener.class);
|
||||
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
CqEvent event = event();
|
||||
adapter.onEvent(event);
|
||||
verify(mock).onEvent(event);
|
||||
@@ -129,7 +129,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testHandleEvent() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
CqEvent event = event();
|
||||
|
||||
adapter.onEvent(event);
|
||||
@@ -139,7 +139,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testHandleArray() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
adapter.setDefaultListenerMethod("handleArray");
|
||||
CqEvent event = event();
|
||||
adapter.onEvent(event);
|
||||
@@ -149,7 +149,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testHandleKey() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
adapter.setDefaultListenerMethod("handleKey");
|
||||
CqEvent event = event();
|
||||
|
||||
@@ -160,7 +160,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testHandleKV() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
adapter.setDefaultListenerMethod("handleKV");
|
||||
CqEvent event = event();
|
||||
|
||||
@@ -171,7 +171,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testHandleEx() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
adapter.setDefaultListenerMethod("handleEx");
|
||||
CqEvent event = event();
|
||||
|
||||
@@ -182,7 +182,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testHandleOps() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
adapter.setDefaultListenerMethod("handleOps");
|
||||
CqEvent event = event();
|
||||
|
||||
@@ -193,7 +193,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testHandleAll() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
adapter.setDefaultListenerMethod("handleAll");
|
||||
CqEvent event = event();
|
||||
|
||||
@@ -205,7 +205,7 @@ public class QueryListenerAdapterTest {
|
||||
@Test
|
||||
public void testInvalid() throws Exception {
|
||||
Delegate mock = mock(Delegate.class);
|
||||
ContinousQueryListenerAdapter adapter = new ContinousQueryListenerAdapter(mock);
|
||||
ContinuousQueryListenerAdapter adapter = new ContinuousQueryListenerAdapter(mock);
|
||||
adapter.setDefaultListenerMethod("handleInvalid");
|
||||
|
||||
adapter.onEvent(event());
|
||||
|
||||
Reference in New Issue
Block a user