From cf9ad7f5398f8a15af01d1578d8b8f41b2b72eb0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 5 Dec 2014 06:39:01 +0100 Subject: [PATCH] Verify that Sones are saved correctly. --- .../net/pterodactylus/sone/database/memory/MemoryDatabaseTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } } -- 2.7.4