1 package com.xtremelabs.robolectric.shadows;
2 
3 import android.support.v4.app.ListFragment;
4 import android.view.View;
5 import android.view.ViewGroup;
6 import android.widget.AdapterView;
7 import android.widget.ListAdapter;
8 import android.widget.ListView;
9 import com.xtremelabs.robolectric.internal.Implementation;
10 import com.xtremelabs.robolectric.internal.Implements;
11 
12 import java.lang.reflect.InvocationTargetException;
13 import java.lang.reflect.Method;
14 
15 /**
16  * Shadow of {@code ListFragment}
17  */
18 @Implements(ListFragment.class)
19 public class ShadowListFragment extends ShadowFragment {
20 
21     private ListAdapter listAdapter;
22 
23     @Implementation
getListAdapter()24     public ListAdapter getListAdapter() {
25         return listAdapter;
26     }
27 
28     @Implementation
setListAdapter(ListAdapter listAdapter)29     public void setListAdapter(ListAdapter listAdapter) {
30         this.listAdapter = listAdapter;
31     }
32 }
33