You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a widget which extends ResizeComposite, and I'm using the GwtMockitoTestRunner
The call inside the constructor initWidget(uiBinder.createAndBindUi(this)); fails with this exception because initWidget inside ResizeComposite has the following assert:
assertwidgetinstanceofRequiresResize :
"LayoutComposite requires that its wrapped widget implement RequiresResize";
I have a feeling this is related to #4, but perhaps not.
I realize uiBinder is a FakeUiBinder, but I think it should ensure that the mocks it returns do more than just initialize the UiFields, it should also ensure to implement all the original interfaces of the owner widget.
The text was updated successfully, but these errors were encountered:
However, it only works if I declare the UiBinder to extend UiBinder<DataGrid, MyClass>, not UiBinder<Widget, MyClass>. This makes sense, since if you declare it to return a widget there's no way for GwtMockito to know you need to implement RequiresResize. Any chance this is the problem, or am I misunderstanding?
While debugging this I did find an unrelated bug that GwtMockito wasn't handling UiBinders that return a generic type properly - I fixed that in 8706592 in case you run into it.
I have a widget which extends
ResizeComposite
, and I'm using the GwtMockitoTestRunnerThe call inside the constructor
initWidget(uiBinder.createAndBindUi(this));
fails with this exception because initWidget insideResizeComposite
has the following assert:I have a feeling this is related to #4, but perhaps not.
I realize uiBinder is a FakeUiBinder, but I think it should ensure that the mocks it returns do more than just initialize the UiFields, it should also ensure to implement all the original interfaces of the owner widget.
The text was updated successfully, but these errors were encountered: