// Path: examples/real-world/src/main/java/com/soundcloud/lightcycle/sample/real_world/home/HomeActivity.java
// public class HomeActivity extends LightCycleAppCompatActivity<HomeView> implements HomeView {
//     @Inject @LightCycle ScreenTracker screenTracker;
//     @Inject @LightCycle HomePresenter headerPresenter;
// 
//     public HomeActivity() {
//         SampleApp.getObjectGraph().inject(this);
//     }
// 
//     @Override
//     public String getScreenName() {
//         return "HomeScreen";
//     }
// 
//     @Override
//     protected void setActivityContentView() {
//         setContentView(R.layout.activity_home);
//     }
// 
//     @Override
//     public void sayHello(@StringRes int message) {
//         ((TextView) findViewById(R.id.hello)).setText(message);
//     }
// 
//     @Override
//     public void showDescription(String title, String message) {
//         ((TextView) findViewById(R.id.title)).setText(title);
//         ((TextView) findViewById(R.id.description)).setText(message);
//     }
// }


import static org.mockito.Mockito.verify;
import com.soundcloud.lightcycle.sample.real_world.home.HomeActivity;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
package com.soundcloud.lightcycle.sample.real_world.tracker;



@RunWith(MockitoJUnitRunner.class)
public class ScreenTrackerTest {

    @Mock private TrackingOperations operations;
    @Mock private HomeActivity activity;
    private ScreenTracker tracker;

    @Before
    public void setUp() throws Exception {
        tracker = new ScreenTracker(operations);
    }

    @Test
    public void trackScreenOnResume() {
        tracker.onResume(activity);

// Path: examples/real-world/src/main/java/com/soundcloud/lightcycle/sample/real_world/home/HomeActivity.java
// public class HomeActivity extends LightCycleAppCompatActivity<HomeView> implements HomeView {
//     @Inject @LightCycle ScreenTracker screenTracker;
//     @Inject @LightCycle HomePresenter headerPresenter;
// 
//     public HomeActivity() {
//         SampleApp.getObjectGraph().inject(this);
//     }
// 
//     @Override
//     public String getScreenName() {
//         return "HomeScreen";
//     }
// 
//     @Override
//     protected void setActivityContentView() {
//         setContentView(R.layout.activity_home);
//     }
// 
//     @Override
//     public void sayHello(@StringRes int message) {
//         ((TextView) findViewById(R.id.hello)).setText(message);
//     }
// 
//     @Override
//     public void showDescription(String title, String message) {
//         ((TextView) findViewById(R.id.title)).setText(title);
//         ((TextView) findViewById(R.id.description)).setText(message);
//     }
// }


// Path: examples/real-world/src/test/java/com/soundcloud/lightcycle/sample/real_world/tracker/ScreenTrackerTest.java
import static org.mockito.Mockito.verify;
import com.soundcloud.lightcycle.sample.real_world.home.HomeActivity;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

package com.soundcloud.lightcycle.sample.real_world.tracker;



@RunWith(MockitoJUnitRunner.class)
public class ScreenTrackerTest {

    @Mock private TrackingOperations operations;
    @Mock private HomeActivity activity;
    private ScreenTracker tracker;

    @Before
    public void setUp() throws Exception {
        tracker = new ScreenTracker(operations);
    }

    @Test
    public void trackScreenOnResume() {
        tracker.onResume(activity);

        verify(operations).trackScreen(activity);