Added test files for nemo-tool
[nemo.git] / nemo-tools / sandbox / src / test / java / org / opendaylight / nemo / tool / sandbox / utils / ConfigTest.java
1 /*
2  * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.nemo.tool.sandbox.utils;
9
10 import junit.framework.TestCase;
11 import org.junit.Assert;
12 import org.junit.Before;
13 import org.junit.Test;
14
15 import static org.junit.Assert.*;
16
17 /**
18  * Created by zhangmeng on 2016/1/14.
19  */
20 public class ConfigTest extends TestCase {
21     private Config config;
22     @Before
23     public void setUp() throws Exception {
24         config = new Config();
25     }
26
27     @Test
28     public void testAll() throws Exception{
29         Assert.assertTrue(Config.getControllerSocket() != null);
30         Assert.assertTrue(Config.isPrintProcess() == false);
31         Assert.assertTrue(Config.getHostName() != null);
32         Assert.assertTrue(Config.getHostUser() != null);
33         Assert.assertTrue(Config.getHostPassword() != null);
34         Assert.assertTrue(Config.getConfigPath() != null);
35         Assert.assertTrue(Config.getConfigHostsFileName() != null);
36         Assert.assertTrue(Config.getConfigExternalsFileName() != null);
37         Assert.assertTrue(Config.getConfigLinksFileName() != null);
38         Assert.assertTrue(Config.getConfigNodesFileName() != null);
39     }
40 }