Open fpezzati opened 6 years ago
Most likely this means that there's a class inside GXT somewhere that's relying on a native method. Could you try annotating your test with either @WithClassesToStub(TextButton.class)
or @WithClassesToSub(CommonStyle.class)
and see if that helps? More details at https://static.javadoc.io/com.google.gwt.gwtmockito/gwtmockito/1.1.8/com/google/gwtmockito/WithClassesToStub.html.
Hello,
I'm trying to build unit tests about widget who uses GWT 2.7.0 and GXT 3.1.4 components. Unfortunately as soon as test encounter a GXT component it raises a NullPointerException. Here is my dummy widget:
public class SomePanel {
private HorizontalPanel pnl; private Button btn; private Label lbl; private TextButton displaySome;
And this is the test who goes wrong:
This is the exception:
I would like to know if gwtmockito is the right tool to use together GXT (I am bound to GXT 3.1.4) and if it is, what am I missing then. TIA.