As mentioned in the TDD book, self-shunt is used to test that an object under test communicates correctly with its collaborator. If we are not using the self-shunt pattern, the test case would act as a intermediary between the object under test and its collaborator.
With self-shunt, we let the test case itself, disguise as a [...]
Entries from November 29th, 2004
Self Shunt Pattern
November 29th, 2004 No Comments
Tags:
Pair programming using Skype, VNC and TODOs
November 24th, 2004 No Comments
I wanted to stay away from the holiday traffic, so I decided to work from home. We started pair-programming. Skype is a great VOIP tool. We did not use any headset; built-in microphones in our laptops were sufficient.
I can say, I am happy with the overall experience.
We both were expecting phone calls. Whenever, any one [...]
Tags:
Lean Interviews…
November 23rd, 2004 No Comments
We placed an ad in Dice, Hotjobs etc for good XP, J2ME programmers. I will tell you, XP programmers are hard to find. We interviewed a senior person from Dallas. Colin and I, then, talked about the traditional interview process and how much waste it generated. How can I know if an individual is right [...]
Tags:
Outsourcing mission critical business services
November 19th, 2004 No Comments
The project I am coaching has outsourced a critical business service to its partner on the west coast. The outsourcing is slowing us down, as the partnership is still evolving and the response time is slow. I was talking to Colin about this and he showed me an interesting model of differentiating between Market Differentiator [...]
Tags:
J2ME Unit testing limitations
November 19th, 2004 No Comments
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. [...]
Tags:
Extreme Exploration….Daily iterations
November 19th, 2004 No Comments
As I mentioned before, I am helping a client develop a cutting-edge J2ME solution. We all are learning J2ME as we go. No one among us is a J2ME expert by any means.
Today, we had to write code that sends SMS from a Midlet. It seemed pretty trivial. The API to send SMS has been [...]
Tags:
Daily iterations to mitigate the unknowns.
November 19th, 2004 No Comments
I am currently working on a cutting-edge J2ME \ XP project.
Now, we are doing daily iterations. In the morning, we get together, and develop an iteration plan. We have taken this approach, because there are more number of unknowns than knowns on this project. We want to mitigate the risk of unknowns, early on.
Here is [...]
Tags:
Test Setup vs. Private method
November 18th, 2004 No Comments
I only use Setup, if almost all my test methods have common code. If not, I prefer to create a private method with the common code, and let the unit tests invoke it. e.g.
[TestFixture]
public class MailBoxTest(){
[Test]
public void PostOfficeExists(){
Assert.True(NJPostOffice().Exists());
}
[Test]
public void [...]
Tags:
J2MEUnit cookbook with Eclipse
November 15th, 2004 1 Comment
I have created a tutorial that walks the user through the following steps:
1. Setup WTK and setup J2MEUnit
2. Create J2ME project in Eclipse\Intellij
3. Write a J2MEUnit testcase and run it.
You can find it here.
Tags:
Personas really help
November 15th, 2004 No Comments
I am currently helping a client in NYC on a wireless Java\ Extreme programming project. We were supposed to start with release planning today. However, I asked them to create some personas, before doing the release planning. We spent almost two hours to create some interesting personas. It was time very well spent as [...]
Tags: