Create AbstractPingPongTransactionChain 62/100862/5
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 23 May 2022 11:23:40 +0000 (13:23 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 23 May 2022 12:07:56 +0000 (14:07 +0200)
commite61953c7d387f8268ac1874b357357e8415bf35b
treec0a340bf82761cdf2832ed9b516f61545d0fbfed
parent5cb5ca868e511cff02f830ef21cd5731a962870c
Create AbstractPingPongTransactionChain

In order to test the various codepaths we need to be able to simulate
multi-threaded access and various race conditions. Rather than resorting
to mocking final classes, separate the implementation into an internal
abstract class. The test suite can then create a subclass with suitable
hooks.

JIRA: MDSAL-698
Change-Id: Id957d15173a96750385b95647824ba188f6d35c9
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/AbstractPingPongTransactionChain.java [new file with mode: 0644]
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/PingPongTransactionChain.java