package com.xtremelabs.robolectric.shadows;

import android.app.ListActivity;
import android.widget.ListAdapter;
import com.xtremelabs.robolectric.WithTestDefaultsRunner;
import junit.framework.TestCase;
import org.junit.Test;
import org.junit.runner.RunWith;

import static org.hamcrest.CoreMatchers.is;
import static org.hamcrest.CoreMatchers.notNullValue;
import static org.hamcrest.MatcherAssert.assertThat;

@RunWith(WithTestDefaultsRunner.class)
public class ListActivityTest extends TestCase {

    @Test
    public void shouldSupportSettingAndGettingListAdapter(){
        ListActivity listActivity = new ListActivity();
        ListAdapter adapter = new CountingAdapter(5);
        listActivity.setListAdapter(adapter);

        assertThat(listActivity.getListAdapter(), is(notNullValue()));
    }
}

@@ -168,41 +168,8 @@
 er;%0A
-import junit.framework.TestCase;%0A
 impo
@@ -446,25 +446,8 @@
 est 
-extends TestCase 
 %7B%0A%0A 

Convert ListActivityTest to JUnit 4