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;
\r
14 import static org.junit.Assert.*;
\r
16 import org.hibernate.validator.constraints.NotEmpty;
\r
17 import org.junit.After;
\r
18 import org.junit.Before;
\r
19 import org.junit.Test;
\r
24 public class SDCServiceProxyInfoTest {
\r
27 * @throws java.lang.Exception
\r
30 public void setUp() throws Exception {}
\r
33 * @throws java.lang.Exception
\r
36 public void tearDown() throws Exception {}
\r
39 public void test() {
\r
40 String serviceAddr = "serviceAddr";
\r
41 String xEcompInstanceId = "xEcompInstanceId";
\r
42 String authorization = "authorization";
\r
44 SDCServiceProxyInfo spi = new SDCServiceProxyInfo();
\r
45 spi.setAuthorization(authorization);
\r
46 spi.setServiceAddr(serviceAddr);
\r
47 spi.setxEcompInstanceId(xEcompInstanceId);
\r
49 assertEquals(authorization, spi.getAuthorization());
\r
50 assertEquals(serviceAddr, spi.getServiceAddr());
\r
51 assertEquals(xEcompInstanceId, spi.getxEcompInstanceId());
\r