projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add tests for isFreenetLink() and isPlainText().
[Sone.git]
/
src
/
test
/
java
/
net
/
pterodactylus
/
sone
/
text
/
PostPartTest.java
diff --git
a/src/test/java/net/pterodactylus/sone/text/PostPartTest.java
b/src/test/java/net/pterodactylus/sone/text/PostPartTest.java
index
e26f524
..
2dcc946
100644
(file)
--- a/
src/test/java/net/pterodactylus/sone/text/PostPartTest.java
+++ b/
src/test/java/net/pterodactylus/sone/text/PostPartTest.java
@@
-40,6
+40,16
@@
public class PostPartTest {
private final PostPart postPart = new PostPart(post);
@Test
private final PostPart postPart = new PostPart(post);
@Test
+ public void postPartIsNotAPlainTextPart() {
+ assertThat(postPart.isPlainText(), is(false));
+ }
+
+ @Test
+ public void postPartIsNotAFreenetLink() {
+ assertThat(postPart.isFreenetLink(), is(false));
+ }
+
+ @Test
public void postPartCanStoreAndReturnPost() {
assertThat(postPart.getPost(), is(post));
}
public void postPartCanStoreAndReturnPost() {
assertThat(postPart.getPost(), is(post));
}