/*
 * Copyright 2013 Prateek Srivastava (@f2prateek)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.f2prateek.couchpotato.tests;

import android.test.suitebuilder.annotation.SmallTest;
import com.f2prateek.couchpotato.ui.activities.MainActivity;
import com.squareup.spoon.Spoon;

public class MainActivityTest extends ActivityTest<MainActivity> {

  public MainActivityTest() {
    super(MainActivity.class);
  }

  @Override
  protected void setUp() throws Exception {
    super.setUp();
  }

  @SmallTest
  public void testUI() {
    Spoon.screenshot(activity, "Initial_State");
  }
}

@@ -649,16 +649,89 @@
 tests;%0A%0A
+import android.app.Instrumentation;%0Aimport android.content.IntentFilter;%0A
 import a
@@ -777,16 +777,16 @@
 llTest;%0A
-
 import c
@@ -872,16 +872,75 @@
 Spoon;%0A%0A
+import static org.fest.assertions.api.ANDROID.assertThat;%0A%0A
 public c
@@ -1180,14 +1180,256 @@
 test
-UI() %7B
+StartsActivityWhenNotLoggedIn() %7B%0A    IntentFilter filter = new IntentFilter();%0A    Instrumentation.ActivityMonitor monitor = instrumentation.addMonitor(filter, null, false);%0A    // Verify new activity was shown.%0A    assertThat(monitor).hasHits(1);
 %0A   
@@ -1450,32 +1450,55 @@
 hot(
-a
+monitor.getLastA
 ctivity
+()
 , %22
-Initial_State
+next_activity_shown
 %22);%0A

Test to verify setup activity is shown if not logged in