Expose MockTransport from MockFace; facilitates Interest/Data inspection
diff --git a/pom.xml b/pom.xml
index 9bd5788..1990572 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.intel.jndn.mock</groupId>
<artifactId>jndn-mock</artifactId>
- <version>0.9.4</version>
+ <version>0.9.5</version>
<name>jndn-mock</name>
<description>Tools for testing NDN Java code without using network IO.</description>
<url>https://github.com/01org/jndn-utils</url>
diff --git a/src/main/java/com/intel/jndn/mock/MockFace.java b/src/main/java/com/intel/jndn/mock/MockFace.java
index 6360a72..e1a62de 100644
--- a/src/main/java/com/intel/jndn/mock/MockFace.java
+++ b/src/main/java/com/intel/jndn/mock/MockFace.java
@@ -29,6 +29,7 @@
import net.named_data.jndn.OnTimeout;
import net.named_data.jndn.encoding.EncodingException;
import net.named_data.jndn.encoding.WireFormat;
+import net.named_data.jndn.transport.Transport;
/**
* <p>
@@ -67,6 +68,13 @@
}
/**
+ * @return a reference to the current MockTransport
+ */
+ public MockTransport getTransport() {
+ return (MockTransport) node_.getTransport();
+ }
+
+ /**
* Add a response Data packet to send immediately when an Interest with a
* matching name is received; will continue to respond with the same packet
* over multiple requests. This will preempt any registered OnInterest