From: David ‘Bombe’ Roden Date: Fri, 25 Oct 2013 17:34:23 +0000 (+0200) Subject: Also test for non-existing “Followed” property when no local Sone is given. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f8afc0d2fca50c71b9a8dfc97f11014f07270ad6;p=Sone.git Also test for non-existing “Followed” property when no local Sone is given. --- diff --git a/src/test/java/net/pterodactylus/sone/fcp/AbstractSoneCommandTest.java b/src/test/java/net/pterodactylus/sone/fcp/AbstractSoneCommandTest.java index 8683b24..f0fd58c 100644 --- a/src/test/java/net/pterodactylus/sone/fcp/AbstractSoneCommandTest.java +++ b/src/test/java/net/pterodactylus/sone/fcp/AbstractSoneCommandTest.java @@ -21,6 +21,7 @@ import static net.pterodactylus.sone.fcp.AbstractSoneCommand.encodeSone; import static net.pterodactylus.sone.fcp.AbstractSoneCommand.encodeString; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNullValue; +import static org.hamcrest.CoreMatchers.nullValue; import static org.hamcrest.MatcherAssert.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; @@ -66,6 +67,7 @@ public class AbstractSoneCommandTest { assertThat(soneFieldSet.get("Prefix.Name"), is("test")); assertThat(soneFieldSet.get("Prefix.NiceName"), is("First M. Last")); assertThat(soneFieldSet.getLong("Prefix.LastUpdated"), is(sone.getTime())); + assertThat(soneFieldSet.get("Prefix.Followed"), nullValue()); assertThat(soneFieldSet.getInt("Prefix.Field.Count"), is(1)); assertThat(soneFieldSet.get("Prefix.Field.0.Name"), is("Test1")); assertThat(soneFieldSet.get("Prefix.Field.0.Value"), is("Value1"));