import net.pterodactylus.sone.fcp.FcpInterface.FullAccessRequired.*
import net.pterodactylus.sone.fcp.event.*
import net.pterodactylus.sone.test.*
+import net.pterodactylus.util.config.*
import org.hamcrest.MatcherAssert.*
import org.hamcrest.Matchers.*
import org.junit.*
}
@Test
+ fun `preferences saves null for default insertion delay setting`() {
+ val configuration = Configuration(MapConfigurationBackend())
+ preferences.saveTo(configuration)
+ assertThat(configuration.getIntValue("Option/InsertionDelay").getValue(null), nullValue())
+ }
+
+ @Test
fun `preferences retain posts per page`() {
preferences.newPostsPerPage = 15
assertThat(preferences.postsPerPage, equalTo(15))