// 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/HelloWorldExampleActivity.java
// public class HelloWorldExampleActivity extends Activity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_hello_world);
//     }
// 
// }
// 
// Path: src/test-lib/src/com/nikhaldimann/viewselector/test/SimpleFragment.java
// @SuppressLint("NewApi")
// public class SimpleFragment extends Fragment {
// 
//     @SuppressLint("NewApi")
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) {
//         super.onCreateView(inflater, container, savedState);
//         return inflater.inflate(R.layout.fragment_simple, container, false);
//     }
// 
// }


import static com.nikhaldimann.viewselector.ViewSelectorAssertions.assertThatSelection;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import com.nikhaldimann.viewselector.test.HelloWorldExampleActivity;
import com.nikhaldimann.viewselector.test.SimpleFragment;
package com.nikhaldimann.viewselector.android.activities;



/**
 * Example unit test for a simple fragment. Though creating an activity to fully
 * start the fragment may not be necessary for most cases.
 *
 * Keep this example self-contained so it can be referenced from documentation.
 */
public class SimpleFragmentTest extends ActivityUnitTestCase<HelloWorldExampleActivity> {

    public SimpleFragmentTest() {
        super(HelloWorldExampleActivity.class);
    }

    private HelloWorldExampleActivity activity;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        startActivity(new Intent(getInstrumentation().getTargetContext(),
                HelloWorldExampleActivity.class), null, null);
        activity = getActivity();
    }

    /**
     * Adds the fragment to a the activity, thereby fully initializing its view.
     */
    private void startFragment(Fragment fragment) {
        FragmentManager manager = activity.getFragmentManager();
        manager.beginTransaction().add(fragment, null).commit();
        manager.executePendingTransactions();
    }

    public void testSimpleFragment() {
// 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/HelloWorldExampleActivity.java
// public class HelloWorldExampleActivity extends Activity {
// 
//     @Override
//     protected void onCreate(Bundle savedInstanceState) {
//         super.onCreate(savedInstanceState);
//         setContentView(R.layout.activity_hello_world);
//     }
// 
// }
// 
// Path: src/test-lib/src/com/nikhaldimann/viewselector/test/SimpleFragment.java
// @SuppressLint("NewApi")
// public class SimpleFragment extends Fragment {
// 
//     @SuppressLint("NewApi")
//     @Override
//     public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedState) {
//         super.onCreateView(inflater, container, savedState);
//         return inflater.inflate(R.layout.fragment_simple, container, false);
//     }
// 
// }


// Path: src/android-test/src/com/nikhaldimann/viewselector/android/activities/SimpleFragmentTest.java
import static com.nikhaldimann.viewselector.ViewSelectorAssertions.assertThatSelection;
import android.app.Fragment;
import android.app.FragmentManager;
import android.content.Intent;
import android.test.ActivityUnitTestCase;
import com.nikhaldimann.viewselector.test.HelloWorldExampleActivity;
import com.nikhaldimann.viewselector.test.SimpleFragment;

package com.nikhaldimann.viewselector.android.activities;



/**
 * Example unit test for a simple fragment. Though creating an activity to fully
 * start the fragment may not be necessary for most cases.
 *
 * Keep this example self-contained so it can be referenced from documentation.
 */
public class SimpleFragmentTest extends ActivityUnitTestCase<HelloWorldExampleActivity> {

    public SimpleFragmentTest() {
        super(HelloWorldExampleActivity.class);
    }

    private HelloWorldExampleActivity activity;

    @Override
    protected void setUp() throws Exception {
        super.setUp();
        startActivity(new Intent(getInstrumentation().getTargetContext(),
                HelloWorldExampleActivity.class), null, null);
        activity = getActivity();
    }

    /**
     * Adds the fragment to a the activity, thereby fully initializing its view.
     */
    private void startFragment(Fragment fragment) {
        FragmentManager manager = activity.getFragmentManager();
        manager.beginTransaction().add(fragment, null).commit();
        manager.executePendingTransactions();
    }

    public void testSimpleFragment() {
        SimpleFragment fragment = new SimpleFragment();