@@ -0,0 +1,1670 @@
+package net.cattaka.android.adaptertoolbox.example;%0A%0Aimport android.content.res.Resources;%0Aimport android.support.test.rule.ActivityTestRule;%0Aimport android.view.View;%0A%0Aimport net.cattaka.android.adaptertoolbox.example.data.OrdinalLabel;%0Aimport net.cattaka.android.adaptertoolbox.example.logic.SnackbarLogic;%0A%0Aimport org.junit.Rule;%0Aimport org.junit.Test;%0A%0Aimport static android.support.test.espresso.Espresso.onData;%0Aimport static android.support.test.espresso.Espresso.onView;%0Aimport static android.support.test.espresso.action.ViewActions.click;%0Aimport static android.support.test.espresso.matcher.ViewMatchers.withId;%0Aimport static org.hamcrest.Matchers.is;%0Aimport static org.mockito.Matchers.any;%0Aimport static org.mockito.Matchers.anyInt;%0Aimport static org.mockito.Matchers.contains;%0Aimport static org.mockito.Mockito.spy;%0Aimport static org.mockito.Mockito.verify;%0A%0A/**%0A * Created by cattaka on 16/06/05.%0A */%0Apublic class CodeLabelExampleActivityTest %7B%0A    @Rule%0A    public ActivityTestRule%3CCodeLabelExampleActivity%3E mActivityTestRule = new ActivityTestRule%3CCodeLabelExampleActivity%3E(CodeLabelExampleActivity.class, false, false);%0A%0A    @Test%0A    public void clickSpinner() %7B%0A        CodeLabelExampleActivity activity = mActivityTestRule.launchActivity(null);%0A        activity.mSnackbarLogic = spy(new SnackbarLogic());%0A%0A        for (OrdinalLabel item : OrdinalLabel.values()) %7B%0A            onView(withId(R.id.spinner)).perform(click());%0A            onData(is(item)).perform(click());%0A%0A            Resources res = activity.getResources();%0A            verify(activity.mSnackbarLogic).make(any(View.class), contains(item.getLabel(res)), anyInt());%0A        %7D%0A    %7D%0A%0A%7D%0A

Add CodeLabelExampleActivityTest