Skip to content

Instantly share code, notes, and snippets.

@patrykpoborca
Created August 27, 2015 16:12
Show Gist options
  • Save patrykpoborca/319de1e255ecec1429e8 to your computer and use it in GitHub Desktop.
Save patrykpoborca/319de1e255ecec1429e8 to your computer and use it in GitHub Desktop.
public class MockTweeterActivityPview implements TweeterMVPPView {
public String fetchedTweet = null;
public List<String> previousTweets = null;
public boolean setUserButtonTextCalled = false;
public boolean toggleProgressBarCalled = false;
public boolean toggleLoginContainerCalled = false;
public String displayWebpage = null;
public boolean displayToastCalled = false;
@Override
public void displayFetchedTweet(String tweet) {
fetchedTweet = tweet;
}
@Override
public void displayPreviousTweets(List<String> list) {
previousTweets = list;
}
@Override
public void setUserButtonText(String text) {
setUserButtonTextCalled = true;
}
@Override
public void toggleLoginContainer(boolean b) {
toggleLoginContainerCalled = true;
}
@Override
public void displayWebpage(String html) {
displayWebpage = html;
}
@Override
public void toggleProgressBar(boolean loading) {
toggleProgressBarCalled = true;
}
@Override
public void displayToast(String toast) {
displayToastCalled = true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment