google-code-export / gwt-test-utils

Automatically exported from code.google.com/p/gwt-test-utils
1 stars 0 forks source link

MockitoConfiguration is not compatible with mockito 1.9.5 #165

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use mockito 1.9.5 inside a GwtTest

A new method (IMockitoConfiguration.enableClassCache()) has been added in 
mockito 1.9.5 which is missing from the one included with gwt-test-utils.

It might be interesting to see what are the plans of the mockito team regarding 
MockitoConfigurations 
(https://groups.google.com/forum/#!topic/mockito/p8s0TTm5r84/discussion)

What version of the product are you using? On what operating system?

gwt-test-utils 0.41
mockito 1.9.5

Please provide any additional information below.

java.lang.AbstractMethodError: 
org.mockito.configuration.MockitoConfiguration.enableClassCache()Z
    at org.mockito.internal.configuration.GlobalConfiguration.enableClassCache(GlobalConfiguration.java:63)
    at org.mockito.internal.creation.jmock.ClassImposterizer.<init>(ClassImposterizer.java:36)
    at org.mockito.internal.creation.jmock.ClassImposterizer.<clinit>(ClassImposterizer.java:29)
    at org.mockito.internal.util.MockCreationValidator.isTypeMockable(MockCreationValidator.java:17)
    at org.mockito.internal.util.MockCreationValidator.validateType(MockCreationValidator.java:21)
    at org.mockito.internal.creation.MockSettingsImpl.validatedSettings(MockSettingsImpl.java:133)
    at org.mockito.internal.creation.MockSettingsImpl.confirm(MockSettingsImpl.java:127)
    at org.mockito.internal.MockitoCore.mock(MockitoCore.java:50)
    at org.mockito.Mockito.mock(Mockito.java:1243)
    at org.mockito.Mockito.mock(Mockito.java:1120)
    at eg.gwt.sample.client.SampleTest.testSearch(SampleTest.java:111)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:263)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:68)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
    at com.googlecode.gwt.test.internal.junit.GwtBlockJUnit4ClassRunner.run(GwtBlockJUnit4ClassRunner.java:27)
    at com.googlecode.gwt.test.internal.junit.AbstractGwtRunner.run(AbstractGwtRunner.java:47)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

Original issue reported on code.google.com by xavier.d...@gmail.com on 15 Oct 2012 at 1:23

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 15 Oct 2012 at 3:48

GoogleCodeExporter commented 9 years ago

Original comment by gael.laz...@gmail.com on 23 Nov 2012 at 12:11

GoogleCodeExporter commented 9 years ago
I just deployed a new 0.44-SNAPSHOT with support for mockito 1.9.5 ! Could you 
please give it a try and post some feedback ?

Original comment by gael.laz...@gmail.com on 23 Nov 2012 at 12:22

GoogleCodeExporter commented 9 years ago
I tried, it works great!

Thanks a lot!

Original comment by ke...@topcmm.com on 23 Nov 2012 at 2:09

GoogleCodeExporter commented 9 years ago
great ! thanks :)

Original comment by gael.laz...@gmail.com on 24 Nov 2012 at 8:46

GoogleCodeExporter commented 9 years ago
Hi guys! Thanks for fixing it, we are also affected.
Do you have any plans of releasing 0.44?

Original comment by Nikolaz...@gmail.com on 27 Nov 2012 at 9:36

GoogleCodeExporter commented 9 years ago
I'm waiting for some feedback on a fix 
(https://github.com/gwt-test-utils/gwt-test-utils/issues/14) before launching 
the release.
I hope it will come this week ;-)

Original comment by gael.laz...@gmail.com on 27 Nov 2012 at 1:01