Set the new default for images per page to 10
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Jul 2015 08:54:04 +0000 (10:54 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 31 Jul 2015 08:54:04 +0000 (10:54 +0200)
src/main/java/net/pterodactylus/sone/core/Preferences.java
src/test/java/net/pterodactylus/sone/core/PreferencesTest.java

index 56bfa73..82f23d1 100644 (file)
@@ -50,7 +50,7 @@ public class Preferences {
        private final Option<Integer> postsPerPage =
                        new DefaultOption<Integer>(10, range(1, MAX_VALUE));
        private final Option<Integer> imagesPerPage =
-                       new DefaultOption<Integer>(9, range(1, MAX_VALUE));
+                       new DefaultOption<Integer>(10, range(1, MAX_VALUE));
        private final Option<Integer> charactersPerPost =
                        new DefaultOption<Integer>(400, Predicates.<Integer>or(
                                        range(50, MAX_VALUE), equalTo(-1)));
index a19fe2e..157e639 100644 (file)
@@ -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