From: David ‘Bombe’ Roden Date: Fri, 31 Jul 2015 08:54:04 +0000 (+0200) Subject: Set the new default for images per page to 10 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=03916b6ff81fbe569d528060efb1787963858b45;p=Sone.git Set the new default for images per page to 10 --- 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