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
23 public class ExtendActivityTest {
\r
26 * @throws java.lang.Exception
\r
29 public void setUp() throws Exception {}
\r
32 * @throws java.lang.Exception
\r
35 public void tearDown() throws Exception {}
\r
38 public void test() {
\r
40 I18nString displayName = new I18nString();
\r
41 I18nString description = new I18nString();
\r
43 IconData icon = new IconData();
\r
44 Content content = new Content();
\r
46 ExtActivity ea = new ExtActivity();
\r
47 ea.setContent(content);
\r
48 ea.setDescription(description);
\r
49 ea.setDisplayName(displayName);
\r
54 assertEquals(content, ea.getContent());
\r
55 assertEquals(description, ea.getDescription());
\r
56 assertEquals(displayName, ea.getDisplayName());
\r
57 assertEquals(icon, ea.getIcon());
\r
58 assertEquals(id, ea.getId());
\r
59 assertEquals(type, ea.getType());
\r