J'aime tester mon code source:printemps JUnit test
@ContextConfiguration(locations = { "/applicationContext.xml" })
@Transactional()
public class Test {
@Autowired
MyDao dao;
@org.junit.Test
@Rollback(false)
public void testSomething() throws Exception {
MyEntity e = new MyEntity();
dao.create(e);
}
}
exécution de ce test avec Eclipse (comme un test JUnit) donne juste un Nullpointer-Exception.
Qu'ai-je fait de mal? THX!
Merci! C'est tout! –
@UdoR. Je suis heureux d'aider – t777