google / gwtmockito

Better GWT unit testing
https://google.github.io/gwtmockito
Apache License 2.0
157 stars 51 forks source link

gwtmockito-sample module is not compiling in the 1.0.1-SNAPSHOT #7

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hello! I've tried to build the snapshot 1.0.1 with latest fixes and the gwtmockito-sample failed to compile with folowing errors: /home/voila/Workspace/Projects/mockito/gwtmockito-sample/src/test/java/sample/MyWidgetTestWithoutRunner.java:[87,78] <anonymous sample.MyWidgetTestWithoutRunner$2> is not abstract and does not override abstract method getFake(java.lang.Class<?>) in com.google.gwtmockito.fakes.FakeProvider /home/voila/Workspace/Projects/mockito/gwtmockito-sample/src/test/java/sample/MyWidgetTestWithoutRunner.java:[89,22] name clash: getFake(java.lang.Class<? extends com.google.gwt.user.client.ui.HasText>) in <anonymous sample.MyWidgetTestWithoutRunner$2> and getFake(java.lang.Class<?>) in com.google.gwtmockito.fakes.FakeProvider have the same erasure, yet neither overrides the other /home/voila/Workspace/Projects/mockito/gwtmockito-sample/src/test/java/sample/MyWidgetTestWithoutRunner.java:[88,7] method does not override or implement a method from a supertype /home/voila/Workspace/Projects/mockito/gwtmockito-sample/src/test/java/sample/MyWidgetTest.java:[73,78] <anonymous sample.MyWidgetTest$1> is not abstract and does not override abstract method getFake(java.lang.Class<?>) in com.google.gwtmockito.fakes.FakeProvider /home/voila/Workspace/Projects/mockito/gwtmockito-sample/src/test/java/sample/MyWidgetTest.java:[75,22] name clash: getFake(java.lang.Class<? extends com.google.gwt.user.client.ui.HasText>) in <anonymous sample.MyWidgetTest$1> and getFake(java.lang.Class<?>) in com.google.gwtmockito.fakes.FakeProvider have the same erasure, yet neither overrides the other /home/voila/Workspace/Projects/mockito/gwtmockito-sample/src/test/java/sample/MyWidgetTest.java:[74,7] method does not override or implement a method from a supertype

The change Class<? extends HasText> to Class<?> in anonymous FakeProvides fixes the issue.

ekuefler commented 11 years ago

Thanks, I've updated the sample app so it should be compiling successfully now.