From c9d63f49af5455f503ca63395121b7cd4d8c8c88 Mon Sep 17 00:00:00 2001 From: "Sonsino, Ofir (os0695)" Date: Wed, 14 Mar 2018 12:04:50 +0200 Subject: Unit tests Change-Id: I9c63fd607757bbec095c26341af593d9afd73886 Issue-ID: VID-197 Signed-off-by: Sonsino, Ofir (os0695) --- .../org/onap/vid/model/ExceptionResponseTest.java | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 vid-app-common/src/test/java/org/onap/vid/model/ExceptionResponseTest.java (limited to 'vid-app-common/src/test/java/org/onap/vid/model/ExceptionResponseTest.java') diff --git a/vid-app-common/src/test/java/org/onap/vid/model/ExceptionResponseTest.java b/vid-app-common/src/test/java/org/onap/vid/model/ExceptionResponseTest.java new file mode 100644 index 000000000..6d1a7ada9 --- /dev/null +++ b/vid-app-common/src/test/java/org/onap/vid/model/ExceptionResponseTest.java @@ -0,0 +1,50 @@ +package org.onap.vid.model; + +import org.junit.Test; + +public class ExceptionResponseTest { + + private ExceptionResponse createTestSubject() { + return new ExceptionResponse(); + } + + @Test + public void testGetException() throws Exception { + ExceptionResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getException(); + } + + @Test + public void testSetException() throws Exception { + ExceptionResponse testSubject; + String exception = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setException(exception); + } + + @Test + public void testGetMessage() throws Exception { + ExceptionResponse testSubject; + String result; + + // default test + testSubject = createTestSubject(); + result = testSubject.getMessage(); + } + + @Test + public void testSetMessage() throws Exception { + ExceptionResponse testSubject; + String message = ""; + + // default test + testSubject = createTestSubject(); + testSubject.setMessage(message); + } +} \ No newline at end of file -- cgit 1.2.3-korg