Skip to main content

Blog Archive for wwake during June 2005

A RowFixture is used to test that a set of items is as expected. The fixture flags surplus or missing items. They look like this: MyRowFixture first last status() Alexander the Great ok Alexander the Mediocre unknown Winnie the Pooh lagging Each row represents a domain object of some sort. The columns have inputs and outputs, as for ColumnFixtures. Data and Abstract Methods First, I'...
ColumnFixture is an easy fixture to understand from the user's point of view: each row is a test case, with some columns being inputs, and others being outputs: MyCalculatorFixture x y plus() 0 2 2 1 1 2 doRows() - Capture the Header Row Method doRows() calls bind() to peel off the header row, then processes the rest of the table. Bind() creates an array of TypeAdapters, one per column...
Martin Fowler posted a good article on the idea of Language Workbenches, followed up by some nice links and more reading: http://www.martinfowler.com/articles/languageWorkbench.html and http://martinfowler.com/bliki/LanguageWorkbenchReadings.html
National Games Week is Nov. 20-26, 2005. See www.NationalGamesWeek.net. Yes, it's an event focused on non-electronic games, but those still have a lot to teach us about interaction and play.
JUnit 4 is out for JDK 1.5. Gunjan Doshi summarizes the changes here. It uses the JDK 1.5 "attribute" feature, so you label tests with "@Test" rather than following the convention of naming them "testSomething()".
C# Fit I've gotten some mail letting me know that the C# Fit has forked a bit - there's a newer version that's the regular Fit distribution, and an older/modified version that's part of Fitnesse. I was having trouble extending the Fitnesse version. There's an effort to do some unification work this summer; that should help. TypeAdapter TypeAdapter exists to give a common interface to types, so...
I love when somebody just digs in and shows the possibilities. Berbank Green has an article at gamasutra showing what you can do with just one button: http://www.gamasutra.com/features/20050602/green_01.shtml Just think of the possibilites if you have two buttons! :)
Wow - this one is a lot cleaner than I expected. I had tried overriding the C# version and had all kinds of grief. This version is straightforward and extensible. Fields The class has three fields: cells - a Parse actor - a Fixture empty - an array of Class Cells holds the list of cells for this row. It's used by the action methods (such as enter()) to pull out data from the row. Actor holds...
Fixture: Fields and Two Helper Classes There's a Map summary that accumulates things like the "run date." I don't know why the top-level Fixture has this, but it does. The fixture fit.Summary walks through this table and gives summary statistics. There's a field counts that has counts of tests passed, failed, and exceptions/errors. The Counts class is just a data bag for these things. When a...
Parse First I want to chase down a couple oddities in what I saw last time. It boils down to these two tests: // This test shows offset isn't applied the way I expected   public void testOffset() throws Exception {        int offsetToData = 2;        Parse p = new Parse(       ...