Add unit test for get sone command, fix some bugs
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 13 Jan 2017 22:22:54 +0000 (23:22 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 13 Jan 2017 22:22:54 +0000 (23:22 +0100)
commit284a781c6d0539232763ea572854d44a62241863
tree14b9a2ab43af63e648dfad244dbe06a8ab57849f
parent4f1c79caddd4f38e9639f054f7a8800c2a5627b3
Add unit test for get sone command, fix some bugs

a) Add a prefix for the sone being returned.
b) When asking for a local Sone, actually require it, too.
c) Fix the actual check for a local Sone.
src/main/java/net/pterodactylus/sone/fcp/AbstractSoneCommand.java
src/main/java/net/pterodactylus/sone/fcp/GetSoneCommand.java
src/test/kotlin/net/pterodactylus/sone/fcp/GetSoneCommandTest.kt [new file with mode: 0644]
src/test/kotlin/net/pterodactylus/sone/fcp/SoneCommandTest.kt