2 * ============LICENSE_START======================================================= Copyright (C) 2019 Nordix
3 * Foundation. ================================================================================ Licensed under the
4 * Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may
5 * obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software
8 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
9 * either express or implied. See the License for the specific language governing permissions and limitations under the
12 * SPDX-License-Identifier: Apache-2.0 ============LICENSE_END=========================================================
15 package org.onap.so.db.catalog.data.repository;
17 import static org.junit.Assert.assertEquals;
18 import static org.junit.Assert.assertNotNull;
19 import static org.junit.Assert.assertTrue;
20 import java.util.List;
21 import org.junit.Test;
22 import org.onap.so.db.catalog.BaseTest;
23 import org.onap.so.db.catalog.beans.PnfResource;
24 import org.onap.so.db.catalog.beans.PnfResourceCustomization;
25 import org.onap.so.db.catalog.beans.Workflow;
26 import org.onap.so.db.catalog.exceptions.NoEntityFoundException;
27 import org.springframework.beans.factory.annotation.Autowired;
29 public class WorkflowRepositoryTest extends BaseTest {
32 private WorkflowRepository workflowRepository;
35 public void findByArtifactUuid_ValidUuid_ExpectedOutput() throws Exception {
36 Workflow workflow = workflowRepository.findByArtifactUUID("5b0c4322-643d-4c9f-b184-4516049e99b1");
38 assertEquals("artifactName", "testingWorkflow", workflow.getArtifactName());