commit | 5f261cb2f4e9719f2a70788039905982f5d27718 | [log] [tgz] |
---|---|---|
author | Eric Newberry <enewberry@cs.ucla.edu> | Fri Jan 31 16:47:43 2020 -0800 |
committer | Eric Newberry <enewberry@cs.ucla.edu> | Tue Feb 04 15:05:40 2020 -0800 |
tree | a132e5a56cea3969a9aa5eec34faed8d1590cd8b | |
parent | 288fcc912b1fb03ae59d46c7ee799d358263fac7 [diff] |
docs: restructure and update AUTHORS.md refs #5078 Change-Id: I971216a8d6f340b77927058eaa871a6939d4b1e6
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
is a test tool that can be passed to applications instead of a network IO Face
; management of the Face.processEvents()
is still the user's responsibility, though this may change in a future release. For example:
Face face = new MockFace(); face.expressInterest(interest, onData, onTimeout); face.processEvents();
When using the MockFace
, retrieve statistics about sent/received Interests and Data packets like:
MockFace face = new MockFace(); assertEquals(0, face.sentDatas.size()); assertEquals(0, face.sentInterests.size()); face.expressInterest(interest, onData, onTimeout); ... face.processEvents(); ... assertEquals(1, face.sentInterests.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.