+ when(core.getUpdateChecker()).thenReturn(updateChecker);
+ when(core.getPreferences()).thenReturn(new Preferences(eventBus));
+ when(core.getLocalSone(anyString())).thenReturn(null);
+ when(core.getLocalSones()).thenReturn(localSones);
+ when(core.getSone(anyString())).thenReturn(Optional.<Sone>absent());
+ when(core.getPost(anyString())).thenReturn(Optional.<Post>absent());
+ when(core.getAlbum(anyString())).thenReturn(null);
+ }
+
+ @Before
+ public final void setupIdentityManager() {
+ when(core.getIdentityManager().getAllOwnIdentities()).thenReturn(ownIdentities);