...
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="classpath:applicationContext.xml")
public class TargetClassTest {
@Autowired
private TargetClass target;
@Test
public void testGreeting() {
target.greeting();
}
}
Another sample to test DAO, rollback when it is done.
No comments:
Post a Comment