@@ -0,0 +1,2187 @@
+package io.github.hidroh.materialistic;%0A%0Aimport android.app.Activity;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.robolectric.ParameterizedRobolectricTestRunner;%0Aimport org.robolectric.shadows.ShadowLooper;%0Aimport org.robolectric.util.SupportFragmentTestUtil;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport io.github.hidroh.materialistic.test.TestListActivity;%0A%0Aimport static junit.framework.Assert.assertEquals;%0Aimport static org.robolectric.Shadows.shadowOf;%0A%0A@RunWith(ParameterizedRobolectricTestRunner.class)%0Apublic class DrawerFragmentTest %7B%0A    private final int drawerResId;%0A    private final Class%3C? extends Activity%3E startedActivity;%0A    private DrawerFragment fragment;%0A%0A    public DrawerFragmentTest(int drawerResId, Class%3C? extends Activity%3E startedActivity) %7B%0A        this.drawerResId = drawerResId;%0A        this.startedActivity = startedActivity;%0A    %7D%0A%0A    @ParameterizedRobolectricTestRunner.Parameters%0A    public  static List%3CObject%5B%5D%3E provideParameters() %7B%0A        return Arrays.asList(%0A                new Object%5B%5D%7BR.id.drawer_list, ListActivity.class%7D,%0A                new Object%5B%5D%7BR.id.drawer_new, NewActivity.class%7D,%0A                new Object%5B%5D%7BR.id.drawer_show, ShowActivity.class%7D,%0A                new Object%5B%5D%7BR.id.drawer_ask, AskActivity.class%7D,%0A                new Object%5B%5D%7BR.id.drawer_job, JobsActivity.class%7D,%0A                new Object%5B%5D%7BR.id.drawer_settings, ActionBarSettingsActivity.class%7D,%0A                new Object%5B%5D%7BR.id.drawer_about, AboutActivity.class%7D,%0A                new Object%5B%5D%7BR.id.drawer_favorite, FavoriteActivity.class%7D%0A        );%0A    %7D%0A%0A    @Before%0A    public void setUp() %7B%0A        fragment = new DrawerFragment();%0A        SupportFragmentTestUtil.startVisibleFragment(fragment, TestListActivity.class,%0A                android.R.id.content);%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        fragment.getView().findViewById(drawerResId).performClick();%0A        ShadowLooper.runUiThreadTasksIncludingDelayedTasks();%0A        assertEquals(startedActivity.getName(),%0A                shadowOf(fragment.getActivity()).getNextStartedActivity().getComponent().getClassName());%0A    %7D%0A%7D%0A

Add drawer test