commit | a7362da170cab6c6c3ff269b46835317fbce3ed2 | [log] [tgz] |
---|---|---|
author | Davide Pesavento <davidepesa@gmail.com> | Fri Oct 30 20:16:42 2020 -0400 |
committer | Davide Pesavento <davidepesa@gmail.com> | Tue Nov 03 15:08:42 2020 -0500 |
tree | 0935d7fa5d140ae6f0040687b6809e778891a179 | |
parent | 20fb7b49a3890f362dfee78040f2235d98e1c900 [diff] |
Update gradle to version 6.7 Use the Java Library plugin and switch to the new (non-deprecated) syntax for declaring dependencies. Various other cleanups/modernizations in build.gradle. Change-Id: Ie091964955bc0fb9f3d7fe01572ffe1853b8f109
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 of the GNU Lesser General Public License, version 3, as published by the Free Software Foundation.
This program is distributed in the hope that 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.