Unit tests for controller RequestException
[controller.git] / opendaylight / md-sal / cds-access-api / src / test / java / org / opendaylight / controller / cluster / access / concepts / RequestExceptionTest.java
diff --git a/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/concepts/RequestExceptionTest.java b/opendaylight/md-sal/cds-access-api/src/test/java/org/opendaylight/controller/cluster/access/concepts/RequestExceptionTest.java
new file mode 100644 (file)
index 0000000..8d5b546
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2017 Pantheon Technologies s.r.o. and others.  All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.controller.cluster.access.concepts;
+
+import org.junit.Test;
+
+public abstract class RequestExceptionTest<T extends RequestException> {
+
+    protected abstract void isRetriable();
+
+    protected abstract void checkMessage();
+
+    @Test
+    public void testIsRetriable() {
+        isRetriable();
+    }
+
+    @Test
+    public void testExceptionMessage() {
+        checkMessage();
+    }
+
+}