1 Jan 2003 04:36
Re: Further TDD Help: Big Changes
bcr19374 <bcr19374 <at> yahoo.com> <bcr19374 <at> yahoo.com>
2003-01-01 03:36:12 GMT
2003-01-01 03:36:12 GMT
--- In testdrivendevelopment <at> yahoogroups.com, "Laurent Bossavit
<laurent <at> b...>" <laurent <at> b...> wrote:
> Whether the replies on that other thread help you or not, I'd like
to
> know more about your situation. Can we look at the tests that are
> breaking together, to see what they have in common ? How are the
> tests breaking ?
Here's a typical method that broke:
private JPanel createGangPanel(Sector sector)
{
JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
panel.add(new JLabel("Gangs"));
if(sector.getGang() != null) //***
{
gangButton_ = new JButton(sector.getGang().getName()); //***
gangButton_.setActionCommand("gang");
gangButton_.addActionListener(new GangButtonHandler());
panel.add(gangButton_);
}
return panel;
}
The starred lines are the ones that would break. Initially, the
Sector class had a Gang member that you could get with the getGang()
(Continue reading)
RSS Feed