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)));
@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