blob: e0f9562ea58ece9ee319ee42aab16c640d419b0e [file] [log] [blame]
Alexander Afanasyeva8bc0d82016-01-25 17:25:30 -08001/*
2 * jndn-management
3 * Copyright (c) 2015, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU Lesser General Public License,
7 * version 3, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT ANY
10 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
12 * more details.
13 */
14package com.intel.jndn.management;
15
Alexander Afanasyeva8bc0d82016-01-25 17:25:30 -080016import net.named_data.jndn.Face;
Alexander Afanasyeva8bc0d82016-01-25 17:25:30 -080017import net.named_data.jndn.security.SecurityException;
18import org.junit.Before;
19import org.junit.Test;
20
21import java.io.IOException;
Alexander Afanasyeva8bc0d82016-01-25 17:25:30 -080022
Alexander Afanasyeve36e1af2016-02-19 18:06:05 -080023import static org.junit.Assert.assertTrue;
Alexander Afanasyeva8bc0d82016-01-25 17:25:30 -080024
25/**
Alexander Afanasyeve36e1af2016-02-19 18:06:05 -080026 * Testing basic pining using real NFD instance (NFD must be run locally while executing the test).
Alexander Afanasyeva8bc0d82016-01-25 17:25:30 -080027 *
28 * @author Andrew Brown <andrew.brown@intel.com>
29 */
30public class NdnPingClientIT {
31 private Face face;
32
33 @Before
34 public void setUp() throws SecurityException {
35 face = new Face("localhost");
36 }
37
38 @Test
39 public void testPingLocal() throws IOException, ManagementException {
40 boolean hasSucceeded = NdnPingClient.pingLocal(face);
41 assertTrue(hasSucceeded);
42 }
43}