Search in sources :

Example 1 with ActivityProxy

use of com.bluelinelabs.conductor.util.ActivityProxy in project Conductor by bluelinelabs.

the class RouterChangeHandlerTests method setup.

@Before
public void setup() {
    ActivityProxy activityProxy = new ActivityProxy().create(null).start().resume();
    router = Conductor.attachRouter(activityProxy.getActivity(), activityProxy.getView(), null);
}
Also used : ActivityProxy(com.bluelinelabs.conductor.util.ActivityProxy) Before(org.junit.Before)

Example 2 with ActivityProxy

use of com.bluelinelabs.conductor.util.ActivityProxy in project Conductor by bluelinelabs.

the class TargetControllerTests method createActivityController.

public void createActivityController(Bundle savedInstanceState) {
    ActivityProxy activityProxy = new ActivityProxy().create(savedInstanceState).start().resume();
    router = Conductor.attachRouter(activityProxy.getActivity(), activityProxy.getView(), savedInstanceState);
    if (!router.hasRootController()) {
        router.setRoot(RouterTransaction.with(new TestController()));
    }
}
Also used : ActivityProxy(com.bluelinelabs.conductor.util.ActivityProxy) TestController(com.bluelinelabs.conductor.util.TestController)

Example 3 with ActivityProxy

use of com.bluelinelabs.conductor.util.ActivityProxy in project Conductor by bluelinelabs.

the class ViewAttachHandlerTests method setup.

@Before
public void setup() {
    activity = new ActivityProxy().create(null).getActivity();
    viewAttachListener = new CountingViewAttachListener();
    viewAttachHandler = new ViewAttachHandler(viewAttachListener);
}
Also used : ActivityProxy(com.bluelinelabs.conductor.util.ActivityProxy) ViewAttachHandler(com.bluelinelabs.conductor.internal.ViewAttachHandler) Before(org.junit.Before)

Example 4 with ActivityProxy

use of com.bluelinelabs.conductor.util.ActivityProxy in project Conductor by bluelinelabs.

the class RouterTests method setup.

@Before
public void setup() {
    ActivityProxy activityProxy = new ActivityProxy().create(null).start().resume();
    router = Conductor.attachRouter(activityProxy.getActivity(), activityProxy.getView(), null);
}
Also used : ActivityProxy(com.bluelinelabs.conductor.util.ActivityProxy) Before(org.junit.Before)

Aggregations

ActivityProxy (com.bluelinelabs.conductor.util.ActivityProxy)4 Before (org.junit.Before)3 ViewAttachHandler (com.bluelinelabs.conductor.internal.ViewAttachHandler)1 TestController (com.bluelinelabs.conductor.util.TestController)1