2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
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
8 package org.opendaylight.nemo.tool.sandbox.utils;
10 import junit.framework.TestCase;
11 import org.junit.Assert;
12 import org.junit.Before;
13 import org.junit.Test;
15 import static org.junit.Assert.*;
18 * Created by zhangmeng on 2016/1/14.
20 public class ConfigTest extends TestCase {
21 private Config config;
23 public void setUp() throws Exception {
24 config = new Config();
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);