@Test public void testCreation() throws Exception { assertEquals(mockPresenter, tested.getPresenter()); PowerMockito.verifyStatic(times(1)); ReflectionPresenterFactory.fromViewClass(argThat(new ArgumentMatcher<Class<?>>() { @Override public boolean matches(Object argument) { return TestView.class.isAssignableFrom((Class)argument); } })); verify(mockDelegate, times(1)).getPresenter(); verifyNoMoreInteractions(mockPresenter, mockDelegate, mockFactory); }
public P getPresenter() { return presenterDelegate.getPresenter(); }
NucleusLayout extends FrameLayout implements ViewWithPresenter<P> { public P getPresenter() { return presenterDelegate.getPresenter(); } }
NucleusLayout extends FrameLayout implements ViewWithPresenter<P> { public P getPresenter() { return presenterDelegate.getPresenter(); } NucleusLayout(Context context);  NucleusLayout(Context context, AttributeSet attrs);  NucleusLayout(Context context, AttributeSet attrs, int defStyle); }
NucleusLayout extends FrameLayout implements ViewWithPresenter<P> { public P getPresenter() { return presenterDelegate.getPresenter(); } NucleusLayout(Context context);  NucleusLayout(Context context, AttributeSet attrs);  NucleusLayout(Context context, AttributeSet attrs, int defStyle); PresenterFactory<P> getPresenterFactory(); @Override void setPresenterFactory(PresenterFactory<P> presenterFactory); P getPresenter(); Activity getActivity(); }
NucleusLayout extends FrameLayout implements ViewWithPresenter<P> { public P getPresenter() { return presenterDelegate.getPresenter(); } NucleusLayout(Context context);  NucleusLayout(Context context, AttributeSet attrs);  NucleusLayout(Context context, AttributeSet attrs, int defStyle); PresenterFactory<P> getPresenterFactory(); @Override void setPresenterFactory(PresenterFactory<P> presenterFactory); P getPresenter(); Activity getActivity();  }