* The āSendBookmarkFeedā command sends a bookmark to a peer.
*
* @author David āBombeā Roden <bombe@freenetproject.org>
+ * @deprecated Use {@link SendBookmark} instead,
+ * {@code SendBookmarkFeed} was removed in Hyphanet build 1236.
*/
+@Deprecated
public class SendBookmarkFeed extends AbstractSendFeedMessage {
/**
--- /dev/null
+package net.pterodactylus.fcp;
+
+import org.junit.Test;
+
+import static org.hamcrest.MatcherAssert.assertThat;
+import static org.hamcrest.Matchers.equalTo;
+
+public class SendBookmarkFeedTest {
+
+ @Test
+ public void sendBookmarkFeedMessageHasCorrectName() {
+ assertThat(sendBookmarkFeed.getName(), equalTo("SendBookmarkFeed"));
+ }
+
+ @Test
+ public void sendBookmarkFeedMessageSetsIdentifierFieldCorrectly() {
+ assertThat(sendBookmarkFeed.getField("Identifier"), equalTo("identifier"));
+ }
+
+ @Test
+ public void sendBookmarkFeedMessageSetsNodeIdentifierFieldCorrectly() {
+ assertThat(sendBookmarkFeed.getField("NodeIdentifier"), equalTo("node-identifier"));
+ }
+
+ @Test
+ public void sendBookmarkFeedMessageSetsNameFieldCorrectly() {
+ assertThat(sendBookmarkFeed.getField("Name"), equalTo("name"));
+ }
+
+ @Test
+ public void sendBookmarkFeedMessageSetsUriFieldCorrectly() {
+ assertThat(sendBookmarkFeed.getField("URI"), equalTo("uri"));
+ }
+
+ @Test
+ public void sendBookmarkFeedMessageSetsDescriptionFieldCorrectly() {
+ assertThat(sendBookmarkFeed.getField("Description"), equalTo("description"));
+ }
+
+ @Test
+ public void sendBookmarkFeedMessageSetsHasActiveLinkFieldCorrectly() {
+ assertThat(sendBookmarkFeed.getField("HasActiveLink"), equalTo("true"));
+ }
+
+ private final SendBookmarkFeed sendBookmarkFeed = new SendBookmarkFeed("identifier", "node-identifier", "name", "uri", "description", true);
+
+}