Created
August 27, 2015 16:12
-
-
Save patrykpoborca/319de1e255ecec1429e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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