Archive for September, 2010

Never let an enterprise architect into a coding dojo

September 21st, 2010 by Johan Eltes

I’m an enterprise architect. My work is to define architectures that span systems, organizations and sometimes countries. Not because architectures become better if they do. No, because business-, enterprise- and pan-european integration projects depend on an agreed abstraction (in the sense of frameworks) of IT so that focus can shift from plumbing to system-level design. [...]

Posted in Agile, Architecture, Dynamic languages, SOA | 2 Comments »

Mock an autowired bean

September 20th, 2010 by Annica Sunnman

Imagine a service implementation having autowired dependencies like:

@Service
@Transactional(rollbackFor=ServiceException.class)
public class ManageDrugServiceImpl implements ManageDrugService {
@Autowired
private DrugPrescriptionManager drugPrescriptionManager;
@Autowired
private UserDAO userDao;
@Autowired
private DrugDAO drugDao;
@Override
public List getNewDrugsForUser() throws ServiceException {…

To test this above service in isolation and mock each dependency is not hard. Create a setter method for each dependency [...]

Posted in Java EE, Open Source, TDD | 4 Comments »

Subclipse vs Subversive

September 15th, 2010 by Annica Sunnman

Getting back from one year off demands some effort to get started on a whole new computer.
I installed Eclipse and then installed the subclipse plugin to connect to Subversion through the “Install new software” in Eclipse. No problems. My code was already checkout on disk and created as Eclipse project with maven and imported as [...]

Posted in Tools | 2 Comments »