Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0m1
-
Fix Version/s: 2.0.1Release
-
Component/s: None
-
Labels:None
-
Number of attachments :
Description
What I did is just write an unit test by both groovy and java:
A java wroted super class:
-------------------------------------
@RunWith(SpringJUnit4ClassRunner.class)
@Transactional
@TransactionConfiguration(transactionManager = "hb3TransactionManager")
@ContextConfiguration(locations =
)
public class AbstractErpServiceTest {
protected final static String COUNTRY_ID = "CAN";
@Autowired private GeoService geoService;
....
------------------------------------
A groovy wrote subclass :
-------------------------------
class ActivityManagerTest extends AbstractErpServiceTest {
@Autowired private CallManager callManager
...
---------------------------------------------
When I use run it in my eclipse JUnit plugin, I got the exception:
like this:
----------------------------------------
2009-11-06 15:52:25,826 [main] ERROR org.springframework.test.context.TestContextManager - Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@153ca5] to prepare test instance [com.oppa.crm.test.service.ActivityManagerTest@1c8f5b9]
java.lang.IllegalStateException: Unable to locate bridged method for bridge method 'public void com.oppa.crm.test.service.ActivityManagerTest.this$dist$set$3(java.lang.String,java.lang.Object)'
at org.springframework.core.BridgeMethodResolver.findBridgedMethod(BridgeMethodResolver.java:77) [org.springframework.core-3.0.0.RC1.jar:3.0.0.RC1]
---------------------------------------------------
Actually, I works before when I use the plugin with groovy 1.6.4, but after I update to 1.6.5 or 1.7, I got these exceptions.
Summary, groovy unit text cannot work with these together now:
@RunWith(SpringJUnit4ClassRunner.class)
@Transactional
@TransactionConfiguration
@ContextConfiguration
Hope anyone here could help me, thanks.
Sorry, this bug slipped through. Can you attach a small failing project? I will have a look at it.
Are you able to run this on the command line? Are you able to run this in Eclipse with an older version of Groovy-Eclipse installed?