spring - WebServices, what to unit test? -
i developing web application using spring + hibernate, plus cxf convert service layer webservices endpoint. want unit test code, , when comes daos have no trouble: create in-memory database filled test data, test daos against that.
but when testing service layer, of methods these:
@override @transactional public void saveprogramacion(programaciondto programacion) { programaciondao.persist(this.map(programacion, programacion.class)); }
that is, method maps vo dto (using external mapper) calls method of dao. that.
i used mockito mock dao there no instructions provide mockito since service method little , not check dao result. given fact mapper external dependency , require own unit test, should testing here? proper unit test in case?
spring web-services hibernate unit-testing junit
No comments:
Post a Comment