title: Is it possible to set data for testing in separate method in qt unit testing?
body: <p>I saw that Qt supports a data function associated to a test function.</p>
  
  <p><a href="http://qt-project.org/doc/qt-4.8/qtestlib-tutorial2.html" rel="nofollow">http://qt-project.org/doc/qt-4.8/qtestlib-tutorial2.html</a></p>
  
  <p>Is it possible to have some similar type of data function for multiple tests ?</p>
  
  <p>Example:</p>
  
  <pre><code>void Test::Test1()
  {
    SomeClass::SomeDataType a;
    a.manyValuesComplicatedToSet = 1;
    SomeOtherClass::SomeOtherDataType b;
    b.manyValuesComplicatedToSet = 2;
  
    QVERIFY(SomeTestClass::someFunction(a,b)== 3);
  }
  
  void Test::Test2()
  {
    SomeClass::SomeDataType a;
    a.manyValuesComplicatedToSet = 1;
    SomeOtherClass::SomeOtherDataType b;
    b.manyValuesComplicatedToSet = 2;
  
    QVERIFY(SomeTestClass::someOtherFunction(a,b)== 5);
  }
  </code></pre>
  
  <p>I would love to be able to set the data above in a common data function, so that I would not type it all every time.</p>
  
  <p>Is that possible ?</p>