@Test public void canSetNewUserValue() { firebaseUserDatabase.writeCurrentUser(anotherUser); verify(mockUsersDatabase).setValue(anotherUser); }
@Override public void writeCurrentUser(User user) { usersDB.child(user.getId()).setValue(user); }
FirebaseUserDatabase implements UserDatabase { @Override public void writeCurrentUser(User user) { usersDB.child(user.getId()).setValue(user); } }
FirebaseUserDatabase implements UserDatabase { @Override public void writeCurrentUser(User user) { usersDB.child(user.getId()).setValue(user); } FirebaseUserDatabase(FirebaseDatabase firebaseDatabase, FirebaseObservableListeners firebaseObservableListeners); }
FirebaseUserDatabase implements UserDatabase { @Override public void writeCurrentUser(User user) { usersDB.child(user.getId()).setValue(user); } FirebaseUserDatabase(FirebaseDatabase firebaseDatabase, FirebaseObservableListeners firebaseObservableListeners); @Override Observable<Users> observeUsers(); @Override Observable<User> readUserFrom(String userId); @Override Observable<User> observeUser(String userId); @Override void writeCurrentUser(User user); }
FirebaseUserDatabase implements UserDatabase { @Override public void writeCurrentUser(User user) { usersDB.child(user.getId()).setValue(user); } FirebaseUserDatabase(FirebaseDatabase firebaseDatabase, FirebaseObservableListeners firebaseObservableListeners); @Override Observable<Users> observeUsers(); @Override Observable<User> readUserFrom(String userId); @Override Observable<User> observeUser(String userId); @Override void writeCurrentUser(User user);  }