From f8afc0d2fca50c71b9a8dfc97f11014f07270ad6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 25 Oct 2013 19:34:23 +0200 Subject: [PATCH] =?utf8?q?Also=20test=20for=20non-existing=20=E2=80=9CFoll?= =?utf8?q?owed=E2=80=9D=20property=20when=20no=20local=20Sone=20is=20given?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/test/java/net/pterodactylus/sone/fcp/AbstractSoneCommandTest.java | 2 ++ 1 file changed, 2 insertions(+) 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")); -- 2.7.4