package de.philipphager.disclosure.feature.navigation;

import android.app.Activity;
import android.content.Intent;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;

import static org.mockito.Matchers.any;
import static org.mockito.Mockito.verify;

@RunWith(MockitoJUnitRunner.class) public class NavigatorShould {
  @Mock protected Activity activity;
  @InjectMocks protected Navigator navigator;

  @Before public void setUp() {
    navigator.setActivity(activity);
  }

  @Test @SuppressWarnings("PMD.JUnitTestsShouldIncludeAssert")
  public void navigateToAppListActivity() {
    navigator.toList();

    verify(activity).startActivity(any(Intent.class));
  }
}

@@ -693,15 +693,12 @@
 teTo
-AppList
+Home
 Acti
@@ -726,12 +726,12 @@
 r.to
-List
+Home
 ();%0A

Fix Navigator test