Committed by
Gerrit Code Review
Disabling all tests in EventuallyConsistentMapImplTest temporarily.
Change-Id: I22f124b1ab5ae889396d9f29ac8e49e1c3349dca
Showing
1 changed file
with
2 additions
and
10 deletions
| ... | @@ -60,6 +60,8 @@ import static org.junit.Assert.fail; | ... | @@ -60,6 +60,8 @@ import static org.junit.Assert.fail; |
| 60 | /** | 60 | /** |
| 61 | * Unit tests for EventuallyConsistentMapImpl. | 61 | * Unit tests for EventuallyConsistentMapImpl. |
| 62 | */ | 62 | */ |
| 63 | +// FIXME: fix this test | ||
| 64 | +@Ignore | ||
| 63 | public class EventuallyConsistentMapImplTest { | 65 | public class EventuallyConsistentMapImplTest { |
| 64 | 66 | ||
| 65 | private EventuallyConsistentMap<String, String> ecMap; | 67 | private EventuallyConsistentMap<String, String> ecMap; |
| ... | @@ -115,8 +117,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -115,8 +117,6 @@ public class EventuallyConsistentMapImplTest { |
| 115 | } | 117 | } |
| 116 | }; | 118 | }; |
| 117 | 119 | ||
| 118 | - // FIXME: Fix all ignored test cases. | ||
| 119 | - | ||
| 120 | @Before | 120 | @Before |
| 121 | public void setUp() throws Exception { | 121 | public void setUp() throws Exception { |
| 122 | clusterService = createMock(ClusterService.class); | 122 | clusterService = createMock(ClusterService.class); |
| ... | @@ -156,7 +156,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -156,7 +156,6 @@ public class EventuallyConsistentMapImplTest { |
| 156 | ecMap.destroy(); | 156 | ecMap.destroy(); |
| 157 | } | 157 | } |
| 158 | 158 | ||
| 159 | - @Ignore | ||
| 160 | @Test | 159 | @Test |
| 161 | public void testSize() throws Exception { | 160 | public void testSize() throws Exception { |
| 162 | expectAnyMessage(clusterCommunicator); | 161 | expectAnyMessage(clusterCommunicator); |
| ... | @@ -178,7 +177,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -178,7 +177,6 @@ public class EventuallyConsistentMapImplTest { |
| 178 | assertEquals(11, ecMap.size()); | 177 | assertEquals(11, ecMap.size()); |
| 179 | } | 178 | } |
| 180 | 179 | ||
| 181 | - @Ignore | ||
| 182 | @Test | 180 | @Test |
| 183 | public void testIsEmpty() throws Exception { | 181 | public void testIsEmpty() throws Exception { |
| 184 | expectAnyMessage(clusterCommunicator); | 182 | expectAnyMessage(clusterCommunicator); |
| ... | @@ -190,7 +188,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -190,7 +188,6 @@ public class EventuallyConsistentMapImplTest { |
| 190 | assertTrue(ecMap.isEmpty()); | 188 | assertTrue(ecMap.isEmpty()); |
| 191 | } | 189 | } |
| 192 | 190 | ||
| 193 | - @Ignore | ||
| 194 | @Test | 191 | @Test |
| 195 | public void testContainsKey() throws Exception { | 192 | public void testContainsKey() throws Exception { |
| 196 | expectAnyMessage(clusterCommunicator); | 193 | expectAnyMessage(clusterCommunicator); |
| ... | @@ -203,7 +200,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -203,7 +200,6 @@ public class EventuallyConsistentMapImplTest { |
| 203 | assertFalse(ecMap.containsKey(KEY1)); | 200 | assertFalse(ecMap.containsKey(KEY1)); |
| 204 | } | 201 | } |
| 205 | 202 | ||
| 206 | - @Ignore | ||
| 207 | @Test | 203 | @Test |
| 208 | public void testContainsValue() throws Exception { | 204 | public void testContainsValue() throws Exception { |
| 209 | expectAnyMessage(clusterCommunicator); | 205 | expectAnyMessage(clusterCommunicator); |
| ... | @@ -262,7 +258,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -262,7 +258,6 @@ public class EventuallyConsistentMapImplTest { |
| 262 | assertNull(ecMap.get(KEY1)); | 258 | assertNull(ecMap.get(KEY1)); |
| 263 | } | 259 | } |
| 264 | 260 | ||
| 265 | - @Ignore | ||
| 266 | @Test | 261 | @Test |
| 267 | public void testPut() throws Exception { | 262 | public void testPut() throws Exception { |
| 268 | // Set up expectations of external events to be sent to listeners during | 263 | // Set up expectations of external events to be sent to listeners during |
| ... | @@ -314,7 +309,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -314,7 +309,6 @@ public class EventuallyConsistentMapImplTest { |
| 314 | verify(listener); | 309 | verify(listener); |
| 315 | } | 310 | } |
| 316 | 311 | ||
| 317 | - @Ignore | ||
| 318 | @Test | 312 | @Test |
| 319 | public void testRemove() throws Exception { | 313 | public void testRemove() throws Exception { |
| 320 | // Set up expectations of external events to be sent to listeners during | 314 | // Set up expectations of external events to be sent to listeners during |
| ... | @@ -379,7 +373,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -379,7 +373,6 @@ public class EventuallyConsistentMapImplTest { |
| 379 | verify(listener); | 373 | verify(listener); |
| 380 | } | 374 | } |
| 381 | 375 | ||
| 382 | - @Ignore | ||
| 383 | @Test | 376 | @Test |
| 384 | public void testPutAll() throws Exception { | 377 | public void testPutAll() throws Exception { |
| 385 | // putAll() with an empty map is a no-op - no messages will be sent | 378 | // putAll() with an empty map is a no-op - no messages will be sent |
| ... | @@ -417,7 +410,6 @@ public class EventuallyConsistentMapImplTest { | ... | @@ -417,7 +410,6 @@ public class EventuallyConsistentMapImplTest { |
| 417 | verify(listener); | 410 | verify(listener); |
| 418 | } | 411 | } |
| 419 | 412 | ||
| 420 | - @Ignore | ||
| 421 | @Test | 413 | @Test |
| 422 | public void testClear() throws Exception { | 414 | public void testClear() throws Exception { |
| 423 | EventuallyConsistentMapListener<String, String> listener | 415 | EventuallyConsistentMapListener<String, String> listener | ... | ... |
-
Please register or login to post a comment