Add serialization size assertions for Request{Failure,Success}
[controller.git] / opendaylight / md-sal / cds-access-api / src / test / java / org / opendaylight / controller / cluster / access / commands / DeadHistoryExceptionTest.java
index 595ef1902b55b62138910906bffb892d72ca0de9..f68297d00c4d518a4c570217908e106cb2c3bf7e 100644 (file)
@@ -7,24 +7,26 @@
  */
 package org.opendaylight.controller.cluster.access.commands;
 
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNull;
-import static org.junit.Assert.assertTrue;
 
+import com.google.common.collect.ImmutableRangeSet;
 import org.opendaylight.controller.cluster.access.concepts.RequestExceptionTest;
 
 public class DeadHistoryExceptionTest extends RequestExceptionTest<DeadHistoryException> {
 
-    private static final DeadHistoryException OBJECT = new DeadHistoryException(100);
+    private static final DeadHistoryException OBJECT = new DeadHistoryException(ImmutableRangeSet.of());
 
     @Override
     protected void isRetriable() {
-        assertTrue(OBJECT.isRetriable());
+        assertFalse(OBJECT.isRetriable());
     }
 
     @Override
     protected void checkMessage() {
         final String message = OBJECT.getMessage();
-        assertTrue("Histories up to 100 are accounted for".equals(message));
+        assertEquals("Histories [] have been purged", message);
         assertNull(OBJECT.getCause());
     }