aboutsummaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorrameshiyer27 <ramesh.murugan.iyer@est.tech>2024-07-17 09:12:52 +0100
committerrameshiyer27 <ramesh.murugan.iyer@est.tech>2024-09-18 09:27:05 +0100
commit683a4a788de041d390d57c5a8f71c4d83fff8820 (patch)
tree4ee82966876ac62e37cf5f83e8475370733a7060 /core/src
parent827a10e2abc1a0967cd215988de63c94a83d6e64 (diff)
Apex pdp code improvements
Fix compilation issues in windows Replace Acm policy with kafka coverage improvements Issue-ID: POLICY-5059 Signed-off-by: zrrmmua <ramesh.murugan.iyer@est.tech> Change-Id: Idfac722cce2d1a2fa471e8c77286006bd883e9a7
Diffstat (limited to 'core/src')
-rw-r--r--core/src/test/java/org/onap/policy/apex/core/infrastructure/threading/MessageExceptionTest.java40
1 files changed, 40 insertions, 0 deletions
diff --git a/core/src/test/java/org/onap/policy/apex/core/infrastructure/threading/MessageExceptionTest.java b/core/src/test/java/org/onap/policy/apex/core/infrastructure/threading/MessageExceptionTest.java
new file mode 100644
index 000000000..c28e322fe
--- /dev/null
+++ b/core/src/test/java/org/onap/policy/apex/core/infrastructure/threading/MessageExceptionTest.java
@@ -0,0 +1,40 @@
+/*-
+ * ============LICENSE_START=======================================================
+ * Copyright (C) 2024 Nordix Foundation. All rights reserved.
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.policy.apex.core.infrastructure.threading;
+
+import static org.assertj.core.api.Assertions.assertThat;
+import static org.junit.jupiter.api.Assertions.assertEquals;
+
+import org.junit.jupiter.api.Test;
+import org.onap.policy.apex.core.infrastructure.messaging.MessagingException;
+
+
+class MessageExceptionTest {
+
+ @Test
+ void testMessageException() {
+ var exception = new MessagingException("Test error");
+ assertEquals("Test error", exception.getMessage());
+
+ var exception2 = new MessagingException("Test error2", new NullPointerException());
+ assertThat(exception2).isInstanceOf(MessagingException.class).hasMessage("Test error2");
+ }
+}