package hdm.sampleproject.app;

import android.app.Activity;
import android.test.ActivityInstrumentationTestCase2;
import android.util.Log;

import com.robotium.solo.Solo;

/**
 * Created by schreon on 3/15/14.
 */
public class WelcomeIntegrationTest extends ActivityInstrumentationTestCase2<WelcomeActivity> {

    public WelcomeIntegrationTest() {
        super(WelcomeActivity.class);
    }

    private Solo solo;

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

        Log.d("robotium", "creating solo");
        solo = new Solo(getInstrumentation(), getActivity());
    }

    public void testWelcome() throws Exception {
        solo.waitForActivity(WelcomeActivity.class);
        assertTrue(solo.searchText("welcome!"));
    }

    @Override
    public void tearDown() throws Exception {
        // finish activity
        solo.finishOpenedActivities();

        super.tearDown();
    }

}

@@ -177,38 +177,83 @@
 %0A * 
-Created by schreon on 3/15/14.
+@author Leon Schr%C3%B6der%0A * @author Friedolin F%C3%B6rder%0A * WelcomeIntegrationTest
 %0A */
@@ -349,16 +349,78 @@
 vity%3E %7B%0A
+    private Solo solo;%0A    %0A    /**%0A     * Constructor%0A     */
 %0A    pub
@@ -499,32 +499,8 @@
  %7D%0A%0A
-    private Solo solo;%0A%0A
     
@@ -695,108 +695,340 @@
   %7D%0A
-%0A    public void testWelcome() throws Exception %7B%0A        solo.waitForActivity(WelcomeActivity.class
+    %0A    /**%0A     * Tests if there is a text welcome! available at the WelcomeActivity%0A     */ %0A    public void testWelcome() throws Exception %7B%0A        Log.d(%22robotium%22, %22wait for the activity to appear%22);%0A        solo.waitForActivity(WelcomeActivity.class);%0A        %0A        Log.d(%22robotium%22, %22check if there is the text welcome!%22
 );%0A 
@@ -1073,32 +1073,36 @@
 come!%22));%0A    %7D%0A
+    
 %0A    @Override%0A 
@@ -1158,26 +1158,46 @@
     
-// 
+Log.d(%22robotium%22, %22
 finish 
+the 
 activity
 %0A   
@@ -1188,24 +1188,27 @@
 the activity
+%22);
 %0A        sol

Update WelcomeIntegrationTest.java