// Path: src/main/java/com/nikhaldimann/viewselector/ViewSelectorAssertions.java
// public static ViewSelectionAssert assertThatSelection(String selector, Activity activity) {
//     return assertThat(selection(selector, activity));
// }
// 
// Path: src/test-lib/src/com/nikhaldimann/viewselector/test/HelloWorldExampleFragmentActivity.java
// public class HelloWorldExampleFragmentActivity extends FragmentActivity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_hello_world);
//     }
// 
// }


import static com.nikhaldimann.viewselector.ViewSelectorAssertions.assertThatSelection;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import com.nikhaldimann.viewselector.test.HelloWorldExampleFragmentActivity;
package com.nikhaldimann.viewselector.android.activities;



/**
 * Example unit test for a simple activity. The layout of the activity has a single
 * TextView with id "hello_world" and text "Hello world!".
 *
 * This is equivalent to {@link HelloWorldExampleActivityTest} but uses a
 * {@code FragmentActivity}.
 *
 * Keep this example self-contained so it can be referenced from documentation.
 */
public class HelloWorldExampleFragmentActivityTest extends ActivityUnitTestCase<HelloWorldExampleFragmentActivity> {

    public HelloWorldExampleFragmentActivityTest() {
        super(HelloWorldExampleFragmentActivity.class);
    }

    private HelloWorldExampleFragmentActivity activity;

    public void testHelloWorld() {
        activity = startActivity(new Intent(getInstrumentation().getTargetContext(),
                HelloWorldExampleFragmentActivity.class), null, null);

// Path: src/main/java/com/nikhaldimann/viewselector/ViewSelectorAssertions.java
// public static ViewSelectionAssert assertThatSelection(String selector, Activity activity) {
//     return assertThat(selection(selector, activity));
// }
// 
// Path: src/test-lib/src/com/nikhaldimann/viewselector/test/HelloWorldExampleFragmentActivity.java
// public class HelloWorldExampleFragmentActivity extends FragmentActivity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_hello_world);
//     }
// 
// }


// Path: src/android-test/src/com/nikhaldimann/viewselector/android/activities/HelloWorldExampleFragmentActivityTest.java
import static com.nikhaldimann.viewselector.ViewSelectorAssertions.assertThatSelection;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import com.nikhaldimann.viewselector.test.HelloWorldExampleFragmentActivity;

package com.nikhaldimann.viewselector.android.activities;



/**
 * Example unit test for a simple activity. The layout of the activity has a single
 * TextView with id "hello_world" and text "Hello world!".
 *
 * This is equivalent to {@link HelloWorldExampleActivityTest} but uses a
 * {@code FragmentActivity}.
 *
 * Keep this example self-contained so it can be referenced from documentation.
 */
public class HelloWorldExampleFragmentActivityTest extends ActivityUnitTestCase<HelloWorldExampleFragmentActivity> {

    public HelloWorldExampleFragmentActivityTest() {
        super(HelloWorldExampleFragmentActivity.class);
    }

    private HelloWorldExampleFragmentActivity activity;

    public void testHelloWorld() {
        activity = startActivity(new Intent(getInstrumentation().getTargetContext(),
                HelloWorldExampleFragmentActivity.class), null, null);

        assertThatSelection("TextView#hello_world", activity)