Command Line Fixture

BobMartin wrote this fixture to test the interactions with his remote state machine compiler. See SmcRemote, one of our featured SampleApplications.

This fixture launches unix commands as if they were run from the shell's command line input. The shell connects commands with pipes and open files. This fixture does also, but it snoops on this traffic in order to establish that the commands are working properly.

This is the test Bob used to find a timing bug in SmcRemote.

Bob is kind enough to distribute this fixture. You can peek at a recent version here or download a zip of all the files from the ObjectMentor site.

Notice that the junit code available above is a unit test of the fixture, not a test of the SmcRemote code. Bob suggests you UnitTestYourFixtures.


Last edited December 16, 2002
Return to WelcomeVisitors