Yesterday I blogged about a rapid data prototyping tool called AngelaSmith which permits building realistic test data. Today Iâ€™m going to show you how to make some use of it. The first thing we need is a model on which to operate. Ever since I read the license agreement for Java 1.1 which explicitly prohibited the development of software related to airplanes Iâ€™ve liked example code which references airplanes. I even had a text book at one point in which all the examples were related to the flying of planes. I canâ€™t remember which book it was but it might have been an old DeitelÂ book.
Anyway letâ€™s start with this model:
This can be filled with AngelaSmith
But if we print out the data we can see that Angela wasnâ€™t quite smart enough to look at substrings of the field names to perform matches. Thatâ€™s a shame and probably going to be a pull request.I did have a good laugh at the idea of a pitchfork with a range of 58km. Thatâ€™s a long pitchfork!
So weâ€™re going to have to set up some custom rules for the data generation
For the most part we can lean on Jen(oh such witty and confusing naming) to do the population for us, but you can see that I used my own custom generation method for flight numbers because theyâ€™re not really standard.Well that was pretty easy! Thanks, Angela, youâ€™re the best.