diff --git a/dsms-engine-application/src/test/java/com/dsms/common/taskmanager/model/TaskExceptionTest.java b/dsms-engine-application/src/test/java/com/dsms/common/taskmanager/model/TaskExceptionTest.java new file mode 100644 index 0000000000000000000000000000000000000000..5fe8633ca782da9069a751894455909fb6568b0b --- /dev/null +++ b/dsms-engine-application/src/test/java/com/dsms/common/taskmanager/model/TaskExceptionTest.java @@ -0,0 +1,21 @@ +package com.dsms.common.taskmanager.model; + +import com.dsms.common.taskmanager.TaskException; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +class TaskExceptionTest { + + @Test + void testTaskException() { + String errorMessage = "error message"; + Throwable throwable = new Throwable(); + TaskException exception = new TaskException(errorMessage); + Assertions.assertEquals(errorMessage, exception.getMessage()); + + TaskException taskException = new TaskException(errorMessage, throwable); + Assertions.assertEquals(throwable, taskException.getCause()); + + + } +} \ No newline at end of file