projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move verifiers to different package.
[Sone.git]
/
src
/
test
/
java
/
net
/
pterodactylus
/
sone
/
fcp
/
UnlockSoneCommandTest.java
diff --git
a/src/test/java/net/pterodactylus/sone/fcp/UnlockSoneCommandTest.java
b/src/test/java/net/pterodactylus/sone/fcp/UnlockSoneCommandTest.java
index
245cdb5
..
adb6b96
100644
(file)
--- a/
src/test/java/net/pterodactylus/sone/fcp/UnlockSoneCommandTest.java
+++ b/
src/test/java/net/pterodactylus/sone/fcp/UnlockSoneCommandTest.java
@@
-18,8
+18,8
@@
package net.pterodactylus.sone.fcp;
import static com.google.common.base.Optional.of;
package net.pterodactylus.sone.fcp;
import static com.google.common.base.Optional.of;
+import static net.pterodactylus.sone.Verifiers.verifyAnswer;
import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.is;
-import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.mockito.Matchers.eq;
import static org.mockito.Mockito.mock;
@@
-57,9
+57,7
@@
public class UnlockSoneCommandTest {
Response response = unlockSoneCommand.execute(fields, null, null);
verify(core).unlockSone(eq(localSone));
Response response = unlockSoneCommand.execute(fields, null, null);
verify(core).unlockSone(eq(localSone));
- assertThat(response, notNullValue());
- assertThat(response.getReplyParameters(), notNullValue());
- assertThat(response.getReplyParameters().get("Message"), is("SoneUnlocked"));
+ verifyAnswer(response, "SoneUnlocked");
assertThat(response.getReplyParameters().get("Sone"), is("LocalSone"));
}
assertThat(response.getReplyParameters().get("Sone"), is("LocalSone"));
}