Hi,
I'm using Spring 3 and I have a class that has the annotation configuration ...
From my JUnit test, how do I configure the @ContextConfiguration annotation to read from this class? I have tried ...Code:@Configuration public class Application { @Bean(name="sqlClient") public AnnotationSessionFactoryBean getSessionFactory(@Qualifier("dataSource") DataSource dataSource) { ...
but I'm getting a compilation error stating that "classes" is not a valid attribute of ContextConfiguration. Anyway, appreciate the help, - DaveCode:@RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(locations="daos.xml", classes=Application.class) public class TestDB {


Reply With Quote