1 package org.onap.appc.requesthandler.exceptions;
3 import static org.junit.Assert.*;
5 import org.onap.appc.executor.objects.LCMCommandStatus;
6 import org.onap.appc.executor.objects.Params;
8 public class RequestValidationExceptionTest {
10 public final void testRequestValidationExceptionWithParams() {
11 String message = "tesingMessage";
12 String command = "tesingCommand";
13 Params p = new Params().addParam("actionName", command);
14 RequestValidationException rve = new RequestValidationException(message, LCMCommandStatus.MISSING_MANDATORY_PARAMETER, p);
15 assertNotNull(rve.getParams());
16 assertNotNull(rve.getMessage());