diff options
Diffstat (limited to 'catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationInputTest.java')
-rw-r--r-- | catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationInputTest.java | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationInputTest.java b/catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationInputTest.java new file mode 100644 index 0000000000..91d0a219c5 --- /dev/null +++ b/catalog-model/src/test/java/org/openecomp/sdc/be/model/OperationInputTest.java @@ -0,0 +1,44 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2019 Nokia. All rights reserved. + * ================================================================================ + * 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 + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.openecomp.sdc.be.model; + + +import static org.junit.Assert.assertEquals; + +import java.util.Collections; +import java.util.List; +import org.junit.Test; +import org.openecomp.sdc.be.datatypes.elements.OperationInputDefinition; + +public class OperationInputTest { + + private static final String NAME = "NAME"; + + @Test + public void shouldHaveValidGettersAndSetters() { + OperationInputDefinition operationInputDefinition = new OperationInputDefinition(); + operationInputDefinition.setName(NAME); + OperationInput operationInput = new OperationInput(operationInputDefinition); + List<PropertyConstraint> constraints = Collections.emptyList(); + operationInput.setConstraints(constraints); + assertEquals(operationInput.getConstraints(), constraints); + assertEquals(operationInput.getName(), operationInputDefinition.getName()); + } +}
\ No newline at end of file |