diff --git a/README.md b/README.md index 60106c5..af46213 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -#Generate Test Data with DataFactory +# Generate Test Data with DataFactory Feb 8th, 2011 in Articles by Andy Gibson @@ -14,7 +14,7 @@ To add DataFactory to your maven project, just add it as a dependency in your po jar -##Generating Test Data +## Generating Test Data Now you can create instances of the DataFactory class and create data : public class Main { @@ -58,7 +58,7 @@ to produce : Poulan Insurance located at 816 Cohen Blvd,Lake City,74839 Crescent Services located at 1085 Cloveridge Boulevard,Bemiss,08769 -##Dates +## Dates There are a number of features to create dates, the first being creating a random date which is usually in a given sensible date range. DataFactory df = new DataFactory(); @@ -145,7 +145,7 @@ Notice how we cherry picked the dates, the estimated delivery date is at least 4 Ordered on 07/10/2003 deliver by = 07/19/2003 delivered on 07/18/2003 - EARLY Ordered on 01/04/2003 deliver by = 01/08/2003 delivered on 01/08/2003 -##Custom Random Values +## Custom Random Values If there is a set of values that is very specific to your application that you might want to generate data from, you can use methods on the DataFactory class to return values with the option for it to be randomly be a default value. @@ -166,7 +166,7 @@ This example uses the array of animals and returns a value with a 20% chance of Dog Horse -##Textual Data +## Textual Data Random text data comes in two forms, absolutely random data and text data made up of words. You can generate either using the following methods :