From 9a4add44ecbd32dea6ac3d30fd81ae1ac82e3dbc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 15 Oct 2017 05:37:18 +0300 Subject: api: ImagesService --- .../src/test/java/com/juick/MessageTest.java | 25 ---------------------- 1 file changed, 25 deletions(-) (limited to 'juick-core/src/test') diff --git a/juick-core/src/test/java/com/juick/MessageTest.java b/juick-core/src/test/java/com/juick/MessageTest.java index b420edfa..3bdac9be 100644 --- a/juick-core/src/test/java/com/juick/MessageTest.java +++ b/juick-core/src/test/java/com/juick/MessageTest.java @@ -127,31 +127,6 @@ public class MessageTest { assertThat(message2.compareTo(message1), equalTo(1)); } - @Test - public void attachmentURLShouldBeReturnCorrectResult() throws Exception { - Message message1 = new Message(); - - assertThat(message1.getAttachmentURL(), nullValue()); - - message1.setAttachmentType("jpeg"); - - assertThat(message1.getAttachmentURL(), equalTo("http://i.juick.com/photos-1024/0.jpeg")); - - message1.setRid(1); - - assertThat(message1.getAttachmentURL(), equalTo("http://i.juick.com/photos-1024/0-1.jpeg")); - - Message message2 = new Message(); - - message2.setAttachmentType("mp4"); - - assertThat(message2.getAttachmentURL(), equalTo("http://i.juick.com/video/0.mp4")); - - message2.setRid(1); - - assertThat(message2.getAttachmentURL(), equalTo("http://i.juick.com/video/0-1.mp4")); - } - @Test public void tagsStringShouldBeEmptyIfNoTags() throws Exception { Message message = new Message(); -- cgit v1.2.3