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.
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.