commit | 83a26d34c0a99e5111dc162041675abce79635c0 | [log] [tgz] |
---|---|---|
author | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Tue Jan 26 01:04:32 2016 -0800 |
committer | Alexander Afanasyev <alexander.afanasyev@ucla.edu> | Wed Feb 10 15:47:56 2016 -0800 |
tree | c7d3ec79c7f7348acc7fca71898dada860fbc1ac | |
parent | 8e9330fdc5bf3ccc07979b735e83bb4bccb8a248 [diff] |
Major refactoring (simplification and improvements) The new implementation largely mimics the implementation in ndn-cxx Change-Id: Ia7128e9cbdb302ebb3d50fa261fdc1dd3fd0116a
This project consists of tools for testing NDN applications without network IO. It relies on the NDN Protocol and its associated client library.
With Maven, add the following to your POM:
<dependency> <groupId>com.intel.jndn.mock</groupId> <artifactId>jndn-mock</artifactId> <version>RELEASE</version> <!-- or a specific version --> </dependency>
MockFace
and MockTransport
are test tools that can be passed to applications instead of the typical Face
and Transport
. For example:
MockTransport transport = new MockTransport(); MockFace face = new MockFace(transport, null); application.doSomethingOn(face); assertEquals(0, transport.getSentDataPackets().size()); assertEquals(1, transport.getSentInterestPackets().size());
Copyright © 2015, Intel Corporation.
This program is free software; you can redistribute it and/or modify it under the terms and conditions of the GNU Lesser General Public License, version 3, as published by the Free Software Foundation.
This program is distributed in the hope it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.