Hi all,

I can execute individual test case with succeed, but when I try to execute a suite of them I get the next exception:

java.lang.Exception: class 'www.iasoft.es.sigad.academica.modelo.impl.PersonB LImplTest' (possibly indirectly) contains itself as a SuiteClass


My code for a single test is:

PersonBLImplTest.java

public class PersonBLImplTest extends BaseTest {

@Autowired protected PersonBLImpl personBLImpl;

@Test
public void savePerson() {
log.warn("Empieza");
Person person = new Person();
person.setFirstname("");
long actualizado = personBLImpl.savePerson(person);
assert (actualizado > 0);
}

}


My code for the suite is:

BaseTest .java

@RunWith(Suite.class)
@ContextConfiguration(locations = {"classpath*:applicationContextTest.xml"} )
@TransactionConfiguration(defaultRollback = true)
@Transactional
@SuiteClasses({
PersonBLImplTest.class,
PersonBLImplTest2.class
})

public class BaseTest extends TestCase {
@Autowired protected Log log;
}


Anyone can help me??