Update POM for OSSRH release; see ticket https://issues.sonatype.org/browse/OSSRH-13979
1 file changed
tree: ab35e7867ed0af4ab67b4d56476f63aca0ba554c
  1. src/
  2. .gitignore
  3. LICENSE
  4. nb-configuration.xml
  5. pom.xml
  6. README.md
README.md

jndn-mock

This project consists of tools for testing NDN applications without network IO. It relies on the NDN Protocol and its associated client library.

Install

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>

Use

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());

License

© Copyright Intel Corporation. Licensed under LGPLv3, see LICENSE.