File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
main/java/com/google/gwtmockito
test/java/com/google/gwtmockito Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 54
54
import com .google .gwt .user .client .ui .SplitLayoutPanel ;
55
55
import com .google .gwt .user .client .ui .StackPanel ;
56
56
import com .google .gwt .user .client .ui .UIObject ;
57
+ import com .google .gwt .user .client .ui .ValueListBox ;
57
58
import com .google .gwt .user .client .ui .VerticalPanel ;
58
59
import com .google .gwt .user .client .ui .Widget ;
59
60
import com .google .gwtmockito .impl .StubGenerator ;
@@ -223,6 +224,7 @@ protected Collection<Class<?>> getClassesToStub() {
223
224
classes .add (SplitLayoutPanel .class );
224
225
classes .add (StackPanel .class );
225
226
classes .add (VerticalPanel .class );
227
+ classes .add (ValueListBox .class );
226
228
227
229
WithClassesToStub annotation = unitTestClass .getAnnotation (WithClassesToStub .class );
228
230
if (annotation != null ) {
Original file line number Diff line number Diff line change 71
71
import com .google .gwt .user .client .ui .RadioButton ;
72
72
import com .google .gwt .user .client .ui .SimpleLayoutPanel ;
73
73
import com .google .gwt .user .client .ui .TextBox ;
74
+ import com .google .gwt .user .client .ui .ValueListBox ;
74
75
import com .google .gwt .user .client .ui .Widget ;
75
76
import com .google .gwt .user .datepicker .client .DatePicker ;
76
77
import com .google .gwtmockito .fakes .FakeProvider ;
@@ -657,6 +658,12 @@ public void shouldBeAbleToUseSimplePager() {
657
658
new SimplePager ().setDisplay (new DataGrid <String >());
658
659
}
659
660
661
+ @ Test
662
+ @ SuppressWarnings ("unused" )
663
+ public void shouldBeAbleToCreateValueListBox () {
664
+ new ValueListBox <Object >();
665
+ }
666
+
660
667
static class PackagePrivateClass {
661
668
String doStuff () {
662
669
return "not mocked" ;
You can’t perform that action at this time.
0 commit comments