diff --git a/spring-integration-gemfire/.gitignore b/spring-integration-gemfire/.gitignore
new file mode 100644
index 0000000000..2e2298678e
--- /dev/null
+++ b/spring-integration-gemfire/.gitignore
@@ -0,0 +1 @@
+*.cfg
\ No newline at end of file
diff --git a/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/store/KeyValueMessageGroupStore.java b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/store/KeyValueMessageGroupStore.java
index d8228b805f..2fd6ce34ce 100644
--- a/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/store/KeyValueMessageGroupStore.java
+++ b/spring-integration-gemfire/src/main/java/org/springframework/integration/gemfire/store/KeyValueMessageGroupStore.java
@@ -24,7 +24,6 @@ import org.springframework.util.Assert;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map;
-import java.util.concurrent.ConcurrentMap;
/**
* Provides an implementation of {@link org.springframework.integration.store.MessageGroupStore} that delegates to a backend Gemfire instance.
diff --git a/spring-integration-gemfire/src/test/resources/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest-context.xml b/spring-integration-gemfire/src/test/java/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest-context.xml
similarity index 100%
rename from spring-integration-gemfire/src/test/resources/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest-context.xml
rename to spring-integration-gemfire/src/test/java/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest-context.xml
diff --git a/spring-integration-gemfire/src/test/java/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest.java b/spring-integration-gemfire/src/test/java/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest.java
index 5d436c7400..5a4c782e5e 100644
--- a/spring-integration-gemfire/src/test/java/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest.java
+++ b/spring-integration-gemfire/src/test/java/org/springframework/integration/gemfire/store/messagegroupstore/GemfireMessageGroupStoreTest.java
@@ -1,5 +1,10 @@
package org.springframework.integration.gemfire.store.messagegroupstore;
+import static org.junit.Assert.assertEquals;
+
+import java.util.Collection;
+import java.util.List;
+
import org.junit.Assert;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -8,50 +13,48 @@ import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;
-import java.util.Collection;
-import java.util.List;
-import java.util.Set;
-
/**
- * Tests the Gemfire {@link org.springframework.integration.store.MessageGroupStore} implementation,
- * {@link org.springframework.integration.gemfire.store.GemfireMessageGroupStore}.
+ * Tests the Gemfire
+ * {@link org.springframework.integration.store.MessageGroupStore}
+ * implementation,
+ * {@link org.springframework.integration.gemfire.store.GemfireMessageGroupStore}
+ * .
*
- * It tests the {@link org.springframework.integration.store.MessageGroupStore} by sending 10 batches of letters (all of the same width),
- * and then counting on the other end that indeed all 10 batches arrived and that all letters expected are there.
- * *
- *
+ * It tests the {@link org.springframework.integration.store.MessageGroupStore}
+ * by sending 10 batches of letters (all of the same width), and then counting
+ * on the other end that indeed all 10 batches arrived and that all letters
+ * expected are there. *
+ *
* @author Josh Long
*/
@RunWith(SpringJUnit4ClassRunner.class)
-@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = {GemfireMessageGroupStoreTestConfiguration.class})
+@ContextConfiguration(loader = AnnotationConfigContextLoader.class, classes = { GemfireMessageGroupStoreTestConfiguration.class })
public class GemfireMessageGroupStoreTest {
- @Autowired private GemfireMessageGroupStoreTestConfiguration.FakeMessageConsumer consumer;
+ @Autowired
+ private GemfireMessageGroupStoreTestConfiguration.FakeMessageConsumer consumer;
+ @Autowired
+ private GemfireMessageGroupStoreTestConfiguration.FakeMessageProducer producer;
private List letters = GemfireMessageGroupStoreTestConfiguration.LIST_OF_STRINGS;
+
private int maxSize = 10;
- private long totalTimeSleeping = 10 * 1000; // give it 10s to send the messages
@Test
- public void testGemfireMessageGroupStore() throws Throwable {
- long counter = 0;
- int delay = 1000;
- Set> batches = consumer.getBatches();
-
- while (batches.size() < maxSize && counter < totalTimeSleeping) {
- counter += delay;
- Thread.sleep(delay);
- }
-
- Assert.assertTrue(batches.size() == maxSize);
- for (Collection