Search in sources :

Example 1 with LayoutManagerWrapper

use of com.tonicartos.superslim.util.Utils.LayoutManagerWrapper in project SuperSLiM by TonicArtos.

the class GridLayoutTests method setup.

@Before
public void setup() {
    ShadowLog.stream = System.out;
    mActivity = Robolectric.buildActivity(Activity.class).create().get();
    mRecyclerView = new RecyclerView(mActivity);
    mLayoutManager = new LayoutManagerWrapper(mActivity);
}
Also used : LayoutManagerWrapper(com.tonicartos.superslim.util.Utils.LayoutManagerWrapper) Activity(android.app.Activity) RecyclerView(android.support.v7.widget.RecyclerView) Before(org.junit.Before)

Example 2 with LayoutManagerWrapper

use of com.tonicartos.superslim.util.Utils.LayoutManagerWrapper in project SuperSLiM by TonicArtos.

the class LinearLayoutTests method setup.

@Before
public void setup() {
    ShadowLog.stream = System.out;
    mActivity = Robolectric.buildActivity(Activity.class).create().get();
    mRecyclerView = new RecyclerView(mActivity);
    mLayoutManager = new LayoutManagerWrapper(mActivity);
}
Also used : LayoutManagerWrapper(com.tonicartos.superslim.util.Utils.LayoutManagerWrapper) Activity(android.app.Activity) RecyclerView(android.support.v7.widget.RecyclerView) Before(org.junit.Before)

Aggregations

Activity (android.app.Activity)2 RecyclerView (android.support.v7.widget.RecyclerView)2 LayoutManagerWrapper (com.tonicartos.superslim.util.Utils.LayoutManagerWrapper)2 Before (org.junit.Before)2