Network Example


We will be experimenting with acceptance testing technique using radio network routing algorithms as a sufficiently complicated example. Our testbed will be a recently reincarnated simulation which we have described briefly elsewhere. http://c2.com/~ward/mors ... Net/SimView.html. -- WardCunningham

The simulator starts with no nodes. The new city button pops up a dialog for city information. Try http:run.cgi.

fit.ActionFixture
starteg.net.Simulator 
checknodes0
pressnew city 
enternamePortland
enterzip1,1,1
enterpopulation1.5e6
entercoord45 30.0 n 122 45.0 w
checkcoordN45.5 W122.75
pressok 
checknodes1
pressnew city 
enternameSalem
enterpopulation.6e6
enterzip1,1,2
entercoord44 59' 22" n 122 28' 59" w
pressok 
checknodes2
pressnew city 
enternameSeattle
presscancel 
checknodes2


An ActionFixture delegates much of its work to other fixtures (actors). See the source for the actor(s) in use here.

This fixture employs a domain specific ValueObject called a GeoCoordinate. The framework goes to some lenght to make sure such objects can be parsed and printed within the framework. Actual parsing and printing are easily delegated to the domain object, as they are here by GeoCoordinate, which accepts a wide variety of coordinate notations.

 

Last edited September 11, 2002
Return to WelcomeVisitors