* ================================================================================
* Copyright (C) 2018 AT&T Intellectual Property. All rights reserved.
* =============================================================================
+ * Modifications Copyright (C) 2018 IBM.
+ * =============================================================================
* 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
import org.onap.appc.executor.objects.LCMCommandStatus;
import org.onap.appc.executor.objects.Params;
+import junit.framework.Assert;
+
public class RequestValidationExceptionTest {
+ @SuppressWarnings("deprecation")
@Test
public final void testRequestValidationExceptionWithParams() {
String message = "tesingMessage";
String command = "tesingCommand";
Params p = new Params().addParam("actionName", command);
RequestValidationException rve = new RequestValidationException(message, LCMCommandStatus.MISSING_MANDATORY_PARAMETER, p);
+ rve.setLogMessage("testLogMessage");
+ Assert.assertEquals("testLogMessage", rve.getLogMessage());
+ rve.setTargetEntity("testTargetEntity");
+ Assert.assertEquals("testTargetEntity", rve.getTargetEntity());
+ rve.setTargetService("testTargetService");
+ Assert.assertEquals("testTargetService", rve.getTargetService());
assertNotNull(rve.getParams());
assertNotNull(rve.getMessage());
}