1 package org.openecomp.sdc.be.components.impl;
4 import org.openecomp.sdc.be.model.ConsumerDefinition;
5 import org.openecomp.sdc.be.model.User;
6 import org.openecomp.sdc.exception.ResponseFormat;
11 public class ConsumerBusinessLogicTest {
13 private ConsumerBusinessLogic createTestSubject() {
14 return new ConsumerBusinessLogic();
19 public void testCreateConsumer() throws Exception {
20 ConsumerBusinessLogic testSubject;
22 ConsumerDefinition consumer = null;
23 Either<ConsumerDefinition, ResponseFormat> result;
26 testSubject = createTestSubject();
34 public void testGetConsumer() throws Exception {
35 ConsumerBusinessLogic testSubject;
36 String consumerId = "";
38 Either<ConsumerDefinition, ResponseFormat> result;
41 testSubject = createTestSubject();
47 public void testGetConsumer_1() throws Exception {
48 ConsumerBusinessLogic testSubject;
49 String consumerId = "";
50 Either<ConsumerDefinition, ResponseFormat> result;
53 testSubject = createTestSubject();
58 public void testDeleteConsumer() throws Exception {
59 ConsumerBusinessLogic testSubject;
60 String consumerId = "";
62 Either<ConsumerDefinition, ResponseFormat> result;
65 testSubject = createTestSubject();
70 public void testUpdateConsumer() throws Exception {
71 ConsumerBusinessLogic testSubject;
72 ConsumerDefinition consumer = null;
74 boolean isCreateRequest = false;
75 Either<ConsumerDefinition, ResponseFormat> result;
78 testSubject = createTestSubject();