2 * Copyright (c) 2018 ZTE Corporation.
\r
3 * All rights reserved. This program and the accompanying materials
\r
4 * are made available under the Apache License, Version 2.0
\r
5 * and the Eclipse Public License v1.0 which both accompany this distribution,
\r
6 * and are available at http://www.eclipse.org/legal/epl-v10.html
\r
7 * and http://www.apache.org/licenses/LICENSE-2.0
\r
10 * ZTE - initial API and implementation and/or initial documentation
\r
12 package org.onap.sdc.workflowdesigner.resources.entity;
\r
14 import static org.junit.Assert.*;
\r
16 import org.junit.After;
\r
17 import org.junit.Before;
\r
18 import org.junit.Test;
\r
20 import com.google.gson.JsonObject;
\r
25 public class WorkflowInfoTest {
\r
28 * @throws java.lang.Exception
\r
31 public void setUp() throws Exception {}
\r
34 * @throws java.lang.Exception
\r
37 public void tearDown() throws Exception {}
\r
40 public void test() {
\r
42 String operationId = "";
\r
45 String description = "";
\r
47 JsonObject data =new JsonObject();
\r
49 WorkflowInfo wi = new WorkflowInfo();
\r
51 wi.setDescription(description);
\r
54 wi.setOperationId(operationId);
\r
58 assertEquals(data, wi.getData());
\r
59 assertEquals(description, wi.getDescription());
\r
60 assertEquals(id, wi.getId());
\r
61 assertEquals(name, wi.getName());
\r
62 assertEquals(operationId, wi.getOperationId());
\r
63 assertEquals(scene, wi.getScene());
\r
64 assertEquals(uuid, wi.getUuid());
\r