FitNesse Tutorials 194
Here is another tutorial for FitNesse: http://schuchert.wikispaces.com/FitNesse.Tutorials.2.
This tutorial and the first now all fit together and form one ongoing example. If you work though the first three tutorials at: http://schuchert.wikispaces.com/FitNesse.Tutorials, you’ll have practiced:- Using Decision Tables
- Using Query Tables
- Refactoring within FitNesse
- Using SetUp and TearDown pages
- Understanding inheritance of SetUp and TearDown pages
- Basic test organization under a suite
- Switching into unit testing from acceptance testing
There’s more to go, but that’s a good start to get you cracking at the fundamentals of FitNesse.
As a bonus, there’s a demonstration of some code in Java that produces query results in a snap. The source code is on github: http://github.com/schuchert/queryresultbuilder/tree/master.
Here is one such example taken from that tutorial:
public List<Object> query() {
List<Program> programs = CreateSeasonPassFor.getSeasonPassManager()
.toDoListContentsFor(programId);
QueryResultBuilder builder = new QueryResultBuilder(Program.class);
builder.register("timeSlot", new TimeSlotPropertyHandler());
QueryResult result = builder.build(programs);
return result.render();
}
Hope this is useful!
