summaryrefslogtreecommitdiffstats
path: root/models-sim/models-sim-dmaap
diff options
context:
space:
mode:
Diffstat (limited to 'models-sim/models-sim-dmaap')
-rw-r--r--models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java b/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java
index 30fd7805f..4b9549a52 100644
--- a/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java
+++ b/models-sim/models-sim-dmaap/src/test/java/org/onap/policy/models/sim/dmaap/provider/DmaapSimProviderTest.java
@@ -42,7 +42,6 @@ import javax.ws.rs.core.Response;
import javax.ws.rs.core.Response.Status;
import org.junit.After;
import org.junit.Before;
-import org.junit.Ignore;
import org.junit.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Captor;
@@ -78,6 +77,9 @@ public class DmaapSimProviderTest {
@Captor
private ArgumentCaptor<List<Object>> listCaptor;
+ @Captor
+ private ArgumentCaptor<List<Object>> listCaptor2;
+
/**
* Sets up.
*/
@@ -145,7 +147,6 @@ public class DmaapSimProviderTest {
}
@Test
- @Ignore
public void testProcessDmaapMessagePut_Single() throws CoderException {
prov = spy(new MyProvider(params));
@@ -169,14 +170,12 @@ public class DmaapSimProviderTest {
verify(prov).makeTopicData(TOPIC2);
// should process all writes as singleton lists
- listCaptor.getAllValues().clear();
verify(data1, times(2)).write(listCaptor.capture());
assertEquals(Collections.singletonList(value1), listCaptor.getAllValues().get(0));
assertEquals(Collections.singletonList(value2), listCaptor.getAllValues().get(1));
- listCaptor.getAllValues().clear();
- verify(data2).write(listCaptor.capture());
- assertEquals(Collections.singletonList(value2), listCaptor.getAllValues().get(0));
+ verify(data2).write(listCaptor2.capture());
+ assertEquals(Collections.singletonList(value2), listCaptor2.getAllValues().get(0));
}
@Test