1 package org.openecomp.sdc.be.servlets;
5 import javax.servlet.ServletContext;
6 import javax.servlet.http.HttpServletRequest;
7 import javax.ws.rs.core.Response;
9 import org.codehaus.jettison.json.JSONObject;
10 import org.junit.Test;
11 import org.openecomp.sdc.be.components.impl.PropertyBusinessLogic;
12 import org.openecomp.sdc.be.dao.api.ActionStatus;
13 import org.openecomp.sdc.be.model.PropertyDefinition;
15 import fj.data.Either;
17 public class PropertyServletTest {
19 private PropertyServlet createTestSubject() {
20 return new PropertyServlet();
25 public void testCreateProperty() throws Exception {
26 PropertyServlet testSubject;
27 String resourceId = "";
29 HttpServletRequest request = null;
34 testSubject = createTestSubject();
39 public void testGetProperty() throws Exception {
40 PropertyServlet testSubject;
41 String resourceId = "";
42 String propertyId = "";
43 HttpServletRequest request = null;
48 testSubject = createTestSubject();
53 public void testDeleteProperty() throws Exception {
54 PropertyServlet testSubject;
55 String resourceId = "";
56 String propertyId = "";
57 HttpServletRequest request = null;
62 testSubject = createTestSubject();
67 public void testUpdateProperty() throws Exception {
68 PropertyServlet testSubject;
69 String resourceId = "";
70 String propertyId = "";
72 HttpServletRequest request = null;
77 testSubject = createTestSubject();
82 public void testGetPropertyModel() throws Exception {
83 PropertyServlet testSubject;
84 String resourceId = "";
86 Either<Map<String, PropertyDefinition>, ActionStatus> result;
89 testSubject = createTestSubject();
97 public void testGetPropertyDefinitionJSONObject() throws Exception {
98 PropertyServlet testSubject;
99 PropertyDefinition propertyDefinition = null;
103 testSubject = createTestSubject();
108 public void testGetPropertyBL() throws Exception {
109 PropertyServlet testSubject;
110 ServletContext context = null;
111 PropertyBusinessLogic result;
114 testSubject = createTestSubject();