2 * Copyright (c) 2015 Huawei, Inc. and others. All rights reserved.
\r
4 * This program and the accompanying materials are made available under the
\r
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
\r
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
\r
8 package org.opendaylight.nemo.tool.sandbox.utils;
\r
10 import junit.framework.TestCase;
\r
11 import org.junit.Before;
\r
12 import org.junit.Test;
\r
14 import static org.junit.Assert.*;
\r
15 import java.io.BufferedReader;
\r
16 import java.io.IOException;
\r
17 import java.io.InputStream;
\r
18 import java.io.InputStreamReader;
\r
19 import java.util.ArrayList;
\r
20 import java.util.List;
\r
22 * Created by zhangmeng on 2016/1/14.
\r
24 public class PropertyLoaderTest extends TestCase {
\r
25 private PropertyLoader propertyLoader;
\r
27 public void setUp() throws Exception {
\r
28 propertyLoader = new PropertyLoader();
\r
32 public void testLoadProperties() throws Exception {
\r
33 PropertyLoader.loadProperties("home","no file!");
\r
37 public void testReadLines() throws Exception {
\r
38 PropertyLoader.readLines("home","no file!");
\r