Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.3.4

...

  1. Ensure that the options for creating mocks have been configured (see Configuring Mocking Options).
  2. Create a new unit test with UTA  (see Creating a Basic Unit TestCreating Multiple Unit Tests or Creating a Parameterized Unit Test). By analyzing source code, UTA will detect complex objects that cannot be incorporated and add a mock object to the test.



  3. Execute the test and view the results in the UTA interface (see Executing Unit Tests with Unit Test Assistant). 
    The Recommendations view displays information about interactions with mock objects.
    Image RemovedImage Added

  4. Clicking the Highlight link helps you view these interactions in execution flow displayed in the left column. 
    Image AddedImage Removed


    The nodes marked in brown indicate the mock object. The nodes in bold indicate interactions with the mock object. Double-clicking the nodes navigates the test code.

...

  1. Click the Mock it link in the recommendation field to extend the test with elements required for mock modification.
    Image Removed
    Image Added

  2. Modify the mock with values that meet your testing strategy.
    Image RemovedImage Added

Mocking Static Methods

...