2421fee8a8be3fd9f2263a748ffb4f4c703131b0
[appc.git] /
1 package org.onap.appc.requesthandler.exceptions;
2
3 import static org.junit.Assert.*;
4 import org.junit.Test;
5 import org.onap.appc.executor.objects.LCMCommandStatus;
6 import org.onap.appc.executor.objects.Params;
7
8 public class RequestValidationExceptionTest {
9     @Test
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());
17     }
18 }