2 * Copyright (c) 2017 Pantheon Technologies s.r.o. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.access.concepts;
10 import static org.junit.Assert.assertFalse;
11 import static org.junit.Assert.assertNull;
12 import static org.junit.Assert.assertTrue;
14 public class RetiredGenerationExceptionTest extends RequestExceptionTest<RetiredGenerationException> {
16 private static final RequestException OBJECT = new RetiredGenerationException(99, 100);
19 protected void isRetriable() {
20 assertFalse(OBJECT.isRetriable());
24 protected void checkMessage() {
25 final String message = OBJECT.getMessage();
26 assertTrue("Originating generation 99 was superseded by 100".equals(message));
27 assertNull(OBJECT.getCause());