Ticket #6266 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Test Class Duplication (PeakOverlays on SliceViewer)

Reported by: Owen Arnold Owned by: Owen Arnold
Priority: minor Milestone: Release 2.4
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Stuart Campbell

Description

Quite a few of the mock classes that I've introduced into SliceViewerTest duplicate mock classes, which are identical to those in other tests.

Would be much better to have them defined once, and commonly assessable.

Change History

comment:1 Changed 8 years ago by Owen Arnold

  • Status changed from new to accepted

comment:2 Changed 8 years ago by Owen Arnold

refs #6266. Consolidate mocking.

Changeset: 145e1a6e7bdb62d5eae5406107f8763b440e4c8a

comment:3 Changed 8 years ago by Owen Arnold

refs #6266. Consolidate mocking.

Changeset: 145e1a6e7bdb62d5eae5406107f8763b440e4c8a

comment:4 Changed 8 years ago by Owen Arnold

  • Status changed from accepted to verify
  • Resolution set to fixed

Tester: This is purely a refactoring requirement to avoid duplication of the Mock types required by the tests. A new header has been added, which includes all those Mock types which are commonly used, and have implementations that are not strongly tied to the tests they are working with.

  • Check the code changes via inspection
  • Run the unit tests

comment:5 Changed 8 years ago by Owen Arnold

refs #6266. Consolidate mocking.

Changeset: 145e1a6e7bdb62d5eae5406107f8763b440e4c8a

comment:6 Changed 8 years ago by Stuart Campbell

  • Status changed from verify to verifying
  • Tester set to Stuart Campbell

comment:7 Changed 8 years ago by Stuart Campbell

  • Status changed from verifying to closed

All unit tests pass

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7112

Note: See TracTickets for help on using tickets.