Add new Server implementation
diff --git a/src/test/java/com/intel/jndn/utils/SegmentedClientTest.java b/src/test/java/com/intel/jndn/utils/SegmentedClientTest.java
index a08f3af..56231db 100644
--- a/src/test/java/com/intel/jndn/utils/SegmentedClientTest.java
+++ b/src/test/java/com/intel/jndn/utils/SegmentedClientTest.java
@@ -97,6 +97,14 @@
}
/**
+ * Test that a sync failed request fails with an exception.
+ */
+ @Test(expected = IOException.class)
+ public void testSyncFailureToRetrieve() throws IOException {
+ SegmentedClient.getDefault().getSync(new MockFace(), new Name("/test/no-data"));
+ }
+
+ /**
* Ensure Name of the returned Data is the same as was requested; identifies
* bug where the last Name.Component was always cut off.
*
@@ -115,4 +123,5 @@
assertEquals(name.toUri(), future.getName().toUri());
assertEquals(name.toUri(), future.get().getName().toUri());
}
+
}