// Path: Testing/app/src/main/java/com/example/mvp_practice02/newsfeed/contracts/View.java
// public interface View {
//     void setData(String[] newsfeed);
//     void showError(String message);
// }
// 
// Path: Testing/app/src/main/java/com/example/mvp_practice02/newsfeed/presenter/NewsfeedPresenter.java
// public class NewsfeedPresenter implements Presenter, InteractorOut {
// 
//     private View view;
//     private Interactor interactor;
// 
//     public NewsfeedPresenter(View view) {
//         this.view = view;
//         interactor=new NewsfeedInteractor(this);
//     }
// 
//     @Override
//     public void getNewsfeed(int userId) {
//         interactor.fetchNewsfeed(userId);
//     }
// 
//     @Override
//     public void onSuccessNewsfeed(String[] newsfeed) {
//         view.setData(newsfeed);
//     }
// 
//     @Override
//     public void onFailureNewsfeed(String message) {
//         view.showError(message);
//     }
// }


import com.example.mvp_practice02.newsfeed.contracts.View;
import com.example.mvp_practice02.newsfeed.presenter.NewsfeedPresenter;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
package com.example.mvp_practice02.newsfeed.view;




/**
 * Created by Talha Hasan Zia on 30-Apr-18.
 * <p></p><b>Description:</b><p></p> Why class was created?
 * <p></p>
 * <b>Public Methods:</b><p></p> Only listing to public methods usage.
 */
public class NewsfeedTest {

    NewsfeedPresenter newsfeedPresenter;

    @Mock
// Path: Testing/app/src/main/java/com/example/mvp_practice02/newsfeed/contracts/View.java
// public interface View {
//     void setData(String[] newsfeed);
//     void showError(String message);
// }
// 
// Path: Testing/app/src/main/java/com/example/mvp_practice02/newsfeed/presenter/NewsfeedPresenter.java
// public class NewsfeedPresenter implements Presenter, InteractorOut {
// 
//     private View view;
//     private Interactor interactor;
// 
//     public NewsfeedPresenter(View view) {
//         this.view = view;
//         interactor=new NewsfeedInteractor(this);
//     }
// 
//     @Override
//     public void getNewsfeed(int userId) {
//         interactor.fetchNewsfeed(userId);
//     }
// 
//     @Override
//     public void onSuccessNewsfeed(String[] newsfeed) {
//         view.setData(newsfeed);
//     }
// 
//     @Override
//     public void onFailureNewsfeed(String message) {
//         view.showError(message);
//     }
// }


// Path: Testing/app/src/test/java/com/example/mvp_practice02/newsfeed/view/NewsfeedTest.java
import com.example.mvp_practice02.newsfeed.contracts.View;
import com.example.mvp_practice02.newsfeed.presenter.NewsfeedPresenter;
import org.junit.Before;
import org.junit.Test;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;

package com.example.mvp_practice02.newsfeed.view;




/**
 * Created by Talha Hasan Zia on 30-Apr-18.
 * <p></p><b>Description:</b><p></p> Why class was created?
 * <p></p>
 * <b>Public Methods:</b><p></p> Only listing to public methods usage.
 */
public class NewsfeedTest {

    NewsfeedPresenter newsfeedPresenter;

    @Mock
    View view;