Search in sources :

Example 1 with ButtonBar

use of com.reactnativenavigation.views.stack.topbar.titlebar.ButtonBar in project react-native-navigation by wix.

the class TitleBarButtonControllerTest method beforeEach.

@Override
public void beforeEach() {
    Activity activity = newActivity();
    titleBar = new ButtonBar(activity);
    ButtonOptions button = createComponentButton();
    uut = new ButtonController(activity, new ButtonPresenter(activity, button, new IconResolver(activity, ImageLoaderMock.mock())), button, new TitleBarButtonCreatorMock(), Mockito.mock(ButtonController.OnClickListener.class));
}
Also used : ButtonOptions(com.reactnativenavigation.options.ButtonOptions) ButtonController(com.reactnativenavigation.viewcontrollers.stack.topbar.button.ButtonController) ButtonBar(com.reactnativenavigation.views.stack.topbar.titlebar.ButtonBar) ButtonPresenter(com.reactnativenavigation.viewcontrollers.stack.topbar.button.ButtonPresenter) IconResolver(com.reactnativenavigation.viewcontrollers.stack.topbar.button.IconResolver) Activity(android.app.Activity) TitleBarButtonCreatorMock(com.reactnativenavigation.mocks.TitleBarButtonCreatorMock)

Example 2 with ButtonBar

use of com.reactnativenavigation.views.stack.topbar.titlebar.ButtonBar in project react-native-navigation by wix.

the class ButtonPresenterTest method beforeEach.

@Override
public void beforeEach() {
    super.beforeEach();
    activity = newActivity();
    titleBar = new ButtonBar(activity);
    activity.setContentView(titleBar);
    button = createButton();
    ImageLoader imageLoaderMock;
    imageLoaderMock = ImageLoaderMock.mock();
    initUUt(imageLoaderMock);
}
Also used : ButtonBar(com.reactnativenavigation.views.stack.topbar.titlebar.ButtonBar)

Aggregations

ButtonBar (com.reactnativenavigation.views.stack.topbar.titlebar.ButtonBar)2 Activity (android.app.Activity)1 TitleBarButtonCreatorMock (com.reactnativenavigation.mocks.TitleBarButtonCreatorMock)1 ButtonOptions (com.reactnativenavigation.options.ButtonOptions)1 ButtonController (com.reactnativenavigation.viewcontrollers.stack.topbar.button.ButtonController)1 ButtonPresenter (com.reactnativenavigation.viewcontrollers.stack.topbar.button.ButtonPresenter)1 IconResolver (com.reactnativenavigation.viewcontrollers.stack.topbar.button.IconResolver)1