+ protected void addAlbum(String albumId, Album album) {
+ when(core.getAlbum(eq(albumId))).thenReturn(album);
+ }
+
+ protected void addImage(String imageId, Image image) {
+ when(core.getImage(eq(imageId))).thenReturn(image);
+ when(core.getImage(eq(imageId), anyBoolean())).thenReturn(image);
+ }
+
+ protected void addNotification(String notificationId, Notification notification) {
+ when(webInterface.getNotification(eq(notificationId))).thenReturn(Optional.of(notification));
+ }
+