Unit tests for controller RequestException
[controller.git] / opendaylight / md-sal / cds-access-api / src / test / java / org / opendaylight / controller / cluster / access / concepts / RequestExceptionTest.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.access.concepts;
9
10 import org.junit.Test;
11
12 public abstract class RequestExceptionTest<T extends RequestException> {
13
14     protected abstract void isRetriable();
15
16     protected abstract void checkMessage();
17
18     @Test
19     public void testIsRetriable() {
20         isRetriable();
21     }
22
23     @Test
24     public void testExceptionMessage() {
25         checkMessage();
26     }
27
28 }