commit | 60fe42234de6594db05ff21be4f53055a38833b5 | [log] [tgz] |
---|---|---|
author | andrewsbrown <andrew.brown@intel.com> | Tue Feb 24 09:13:08 2015 -0800 |
committer | andrewsbrown <andrew.brown@intel.com> | Tue Feb 24 09:13:08 2015 -0800 |
tree | 3c1d6a6a965f4dafb92b52db628995001c460880 | |
parent | be120f4e4849eaecef720efd20ada42e01f6bda4 [diff] |
Bump version
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 Intel Corporation. Licensed under LGPLv3, see LICENSE.