*/
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());
}