
ich habe ein kleines Problem in Bezug auf das Testen von Methoden.
Die Methode die getestet werden soll:
Code (Java):
public final CalendarDto getCalendar(final int systemId) {
CsmAssert.isTrue(systemId>0, "System id must be a positive value.", "systemId");
final System system = iSystemDao.findOne(systemId);
if (system == null) {
throw new NotFoundException("System with the id: " + systemId + " cannot be found in the DB.",...
CsmAssert.isTrue(systemId>0, "System id must be a positive value.", "systemId");
final System system = iSystemDao.findOne(systemId);
if (system == null) {
throw new NotFoundException("System with the id: " + systemId + " cannot be found in the DB.",...
Testen von Methoden
0 commentaires:
Enregistrer un commentaire