commit | c7693198fe918cc7f027d606549ff9faea0f5d6e | [log] [tgz] |
---|---|---|
author | andrewsbrown <andrew.brown@intel.com> | Mon Feb 23 10:14:11 2015 -0800 |
committer | andrewsbrown <andrew.brown@intel.com> | Mon Feb 23 10:14:11 2015 -0800 |
tree | ab35e7867ed0af4ab67b4d56476f63aca0ba554c | |
parent | a5a077314a1ded72e2ebec6f15bc7c5250d29c8c [diff] |
Update POM for OSSRH release; see ticket https://issues.sonatype.org/browse/OSSRH-13979
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.