Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

Wiki MarkupLet's start from the top, \ [RunWith("org.flexunit.runners.Parameterized")\] is needed to declare the runner for FlexUnit. If this is the first time that this runner is being invoked then you must declare a variable of type Parameterized as on line 3.<br>

Wiki MarkupSpecifying \ [Parameters\] is what will be passed into the constructor, these data sets can be used as dataProviders as well.<br>unmigrated-wiki-markup

<br>The first test, timesTwoTest, assigns its dataProvider of dataTwo array with the set values of \ [ 5, 10 \ ] \ [ 6, 12 \ ] \ [ 7, 14 \ ]. Now unlike theories, a separate test will be created for each data set naming it inside of Flexunit like so \ [nameOfTest\]_\[arg1\]_\[arg2\]_\[constructorArg1\]_\[constructor\[Arg2\]. For example the first test that you might see in your list would look something like this timesTwoTest_5_10_0_0<br>

<br>The doubleTest will run a total of nine times. It will run through all the data sets in the provider for each data set passed to the constructor.<br>

...