[OVSDB-260] Tests rely on PowerMock too much Created: 19/Jan/16  Updated: 01/May/19  Resolved: 01/May/19

Status: Resolved
Project: ovsdb
Component/s: Other
Affects Version/s: unspecified
Fix Version/s: None

Type: Improvement
Reporter: Stephen Kitt Assignee: Stephen Kitt
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All



 Description   

A common pattern in OVSDB unit tests is to rely extensively on PowerMock, even where unnecessary. Tests should be reworked to avoid PowerMock where sensible.



 Comments   
Comment by Sam Hague [ 19/Jan/16 ]

https://git.opendaylight.org/gerrit/32593
https://git.opendaylight.org/gerrit/32949

https://git.opendaylight.org/gerrit/32995
https://git.opendaylight.org/gerrit/32996

Comment by Stephen Kitt [ 29/Jan/16 ]

So I don't forget, after merging https://git.opendaylight.org/gerrit/33052 I need to rework:

  • SouthboundMapperTest::testGetInstanceIdentifier()
  • SouthboundProviderTest::testHandleOwnershipChange()
  • SouthboundUtilTest::testDeleteNode() (this one has been deleted, see the old versions in the Gerrit above)
Comment by Anil Vishnoi [ 03/Feb/17 ]

Hi Stephen,

Is there any pending work on this enhancement ?

Comment by Anil Vishnoi [ 01/May/19 ]

Relevant patches are merged.

Generated at Wed Feb 07 20:35:55 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.