JUnit tests for commons.northbound
[controller.git] / opendaylight / northbound / commons / src / test / java / org / opendaylight / controller / northbound / commons / CommonsNorthboundTest.java
diff --git a/opendaylight/northbound/commons/src/test/java/org/opendaylight/controller/northbound/commons/CommonsNorthboundTest.java b/opendaylight/northbound/commons/src/test/java/org/opendaylight/controller/northbound/commons/CommonsNorthboundTest.java
new file mode 100644 (file)
index 0000000..9dba530
--- /dev/null
@@ -0,0 +1,19 @@
+package org.opendaylight.controller.northbound.commons;
+
+import org.junit.Assert;
+import org.junit.Test;
+
+import junit.framework.TestCase;
+
+public class CommonsNorthboundTest extends TestCase {
+
+    @Test
+    public void testRestMessages() {
+        Assert.assertTrue(RestMessages.SUCCESS.toString().equals("Success"));
+        Assert.assertTrue(RestMessages.INTERNALERROR.toString().equals(
+                "Internal Error"));
+        Assert.assertTrue(RestMessages.INVALIDDATA.toString().equals(
+                "Data is invalid or conflicts with URI"));
+    }
+
+}