projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Mock posts with a mocker, too.
[Sone.git]
/
src
/
test
/
java
/
net
/
pterodactylus
/
sone
/
fcp
/
GetPostCommandTest.java
diff --git
a/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java
b/src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java
index
03dc205
..
c6664b9
100644
(file)
--- a/
src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java
+++ b/
src/test/java/net/pterodactylus/sone/fcp/GetPostCommandTest.java
@@
-132,7
+132,7
@@
public class GetPostCommandTest {
}
private Post preparePost(Sone sone) {
- Post post = mocks.mockPost(sone, "PostId");
+ Post post = mocks.mockPost(sone, "PostId")
.create()
;
when(post.getText()).thenReturn("Text of the post.");
when(post.getTime()).thenReturn(1000L);
return post;