From 03916b6ff81fbe569d528060efb1787963858b45 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 31 Jul 2015 10:54:04 +0200 Subject: [PATCH] Set the new default for images per page to 10 --- src/main/java/net/pterodactylus/sone/core/Preferences.java | 2 +- src/test/java/net/pterodactylus/sone/core/PreferencesTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Preferences.java b/src/main/java/net/pterodactylus/sone/core/Preferences.java index 56bfa73..82f23d1 100644 --- a/src/main/java/net/pterodactylus/sone/core/Preferences.java +++ b/src/main/java/net/pterodactylus/sone/core/Preferences.java @@ -50,7 +50,7 @@ public class Preferences { private final Option postsPerPage = new DefaultOption(10, range(1, MAX_VALUE)); private final Option imagesPerPage = - new DefaultOption(9, range(1, MAX_VALUE)); + new DefaultOption(10, range(1, MAX_VALUE)); private final Option charactersPerPost = new DefaultOption(400, Predicates.or( range(50, MAX_VALUE), equalTo(-1))); diff --git a/src/test/java/net/pterodactylus/sone/core/PreferencesTest.java b/src/test/java/net/pterodactylus/sone/core/PreferencesTest.java index a19fe2e..157e639 100644 --- a/src/test/java/net/pterodactylus/sone/core/PreferencesTest.java +++ b/src/test/java/net/pterodactylus/sone/core/PreferencesTest.java @@ -96,12 +96,12 @@ public class PreferencesTest { @Test public void preferencesReturnDefaultValueWhenImagesPerPageIsSetToNull() { preferences.setImagesPerPage(null); - assertThat(preferences.getImagesPerPage(), is(9)); + assertThat(preferences.getImagesPerPage(), is(10)); } @Test public void preferencesStartWithImagesPerPageDefaultValue() { - assertThat(preferences.getImagesPerPage(), is(9)); + assertThat(preferences.getImagesPerPage(), is(10)); } @Test -- 2.7.4