diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2018-04-02 19:59:53 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-04-02 19:59:53 +0000 |
commit | d105cbfe03206ad479e474e58290db4d5b9ba511 (patch) | |
tree | d13457fffde9a4ee6857751de9972218522471d0 /POLICY-SDK-APP/src/test/java | |
parent | 1cc7a3d1ec03a9eac35c3467167be08dedd2ded8 (diff) | |
parent | c2a62b0884e64c5dae3da64c034807cd2b98bccb (diff) |
Merge "Support CSIT tests for OOF Policy"
Diffstat (limited to 'POLICY-SDK-APP/src/test/java')
-rw-r--r-- | POLICY-SDK-APP/src/test/java/org/onap/policy/controller/CreateOptimizationControllerTest.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/POLICY-SDK-APP/src/test/java/org/onap/policy/controller/CreateOptimizationControllerTest.java b/POLICY-SDK-APP/src/test/java/org/onap/policy/controller/CreateOptimizationControllerTest.java index af573c616..35395a859 100644 --- a/POLICY-SDK-APP/src/test/java/org/onap/policy/controller/CreateOptimizationControllerTest.java +++ b/POLICY-SDK-APP/src/test/java/org/onap/policy/controller/CreateOptimizationControllerTest.java @@ -386,8 +386,10 @@ public class CreateOptimizationControllerTest { public void testSetModelData() { logger.debug("testSetModelData: enter"); - + + CreateOptimizationController controller = new CreateOptimizationController(); HttpServletRequest request = createMock(HttpServletRequest.class); + MockHttpServletResponse response = new MockHttpServletResponse(); expect(request.getContentType()).andReturn("multipart/form-data; boundary=----WebKitFormBoundaryWcRUaIbC8kXgjr3p"); expect(request.getMethod()).andReturn("post"); expect(request.getHeader("Content-length")).andReturn("7809"); @@ -407,12 +409,14 @@ public class CreateOptimizationControllerTest { expect(request.getCharacterEncoding()).andReturn("UTF-8"); expect(request.getContentLength()).andReturn(1024); replay(request); - + controller.setModelData(request, response); + } catch (Exception e) { logger.error("testSetModelData" + e); e.printStackTrace(); } + logger.debug("testSetModelData: exit"); } |