mercredi 25 mars 2015

can't extend AbstractTransactionalJUnit4SpringContextTests

I'm trying to extend the spring unit test abstract class AbstractTransactionalJUnit4SpringContextTests, but eclipse complains of an inconsistent type hierarchy. I've reduced the problem down to a real simple example:



package com.test;

import org.springframework.test.context.junit4.AbstractTransactionalJUnit4SpringContextTests;

public class HooHa extends AbstractTransactionalJUnit4SpringContextTests {

}


I have spring-test-3.0.5.RELEASE.jar on the classpath for the project, so eclipse is finding the class, it just doesn't like it.


The error message that eclipse gives is:



The hierarchy of the type HooHa is inconsistent


Any help or insight anyone can provide would be greatly appreciated.


Aucun commentaire:

Enregistrer un commentaire