From: David ‘Bombe’ Roden Date: Fri, 5 Dec 2014 05:39:01 +0000 (+0100) Subject: Verify that Sones are saved correctly. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=cf9ad7f5398f8a15af01d1578d8b8f41b2b72eb0;p=Sone.git Verify that Sones are saved correctly. --- diff --git a/src/test/java/net/pterodactylus/sone/database/memory/MemoryDatabaseTest.java b/src/test/java/net/pterodactylus/sone/database/memory/MemoryDatabaseTest.java index ac53a5d..1d7d471 100644 --- a/src/test/java/net/pterodactylus/sone/database/memory/MemoryDatabaseTest.java +++ b/src/test/java/net/pterodactylus/sone/database/memory/MemoryDatabaseTest.java @@ -427,9 +427,11 @@ public class MemoryDatabaseTest { @Test public void stoppingTheDatabaseSavesTheKnownSones() throws ConfigurationException { + configurationValues.put("KnownSones/0/ID", Mockito.spy(TestValue.from(SONE_ID))); memoryDatabase.startAndWait(); memoryDatabase.stopAndWait(); - verify(configurationValues.get("KnownSones/0/ID")).setValue(null); + verify(configurationValues.get("KnownSones/0/ID")).setValue(SONE_ID); + verify(configurationValues.get("KnownSones/1/ID")).setValue(null); } }