J2ME has no proxy or reflection API. It is very thin and lean, as it needs to run on cell phones. As part of our TDD efforts, the team needed a mock tool like JMock or EasyMock. However, we could not use any of these tools. We ended up using stubs as replacement for mocks. As Martin Fowler describes in this article mocks are not stubs. Stubs are just stand-in or place holder for secondary classes on the boundary of the system. The team has decided to be test-driven in spite of all the limitations of the technology. Of course, I cannot complain!
Tags: No Comments
0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.