2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.openecomp.sdc.be.servlets;
23 import javax.servlet.http.HttpServletRequest;
24 import javax.ws.rs.core.Response;
26 import org.junit.Test;
28 public class ProductServletTest {
30 private ProductServlet createTestSubject() {
31 return new ProductServlet();
36 public void testCreateProduct() throws Exception {
37 ProductServlet testSubject;
39 HttpServletRequest request = null;
44 testSubject = createTestSubject();
49 public void testGetProductById() throws Exception {
50 ProductServlet testSubject;
51 String productId = "";
52 HttpServletRequest request = null;
57 testSubject = createTestSubject();
62 public void testGetServiceByNameAndVersion() throws Exception {
63 ProductServlet testSubject;
64 String productName = "";
65 String productVersion = "";
66 HttpServletRequest request = null;
71 testSubject = createTestSubject();
76 public void testDeleteProduct() throws Exception {
77 ProductServlet testSubject;
78 String productId = "";
79 HttpServletRequest request = null;
83 testSubject = createTestSubject();
88 public void testUpdateProductMetadata() throws Exception {
89 ProductServlet testSubject;
90 String productId = "";
92 HttpServletRequest request = null;
97 testSubject = createTestSubject();
102 public void testValidateServiceName() throws Exception {
103 ProductServlet testSubject;
104 String productName = "";
105 HttpServletRequest request = null;
110 testSubject = createTestSubject();