Designing a Test class for a custom Barrier

后端 未结 2 1822
轻奢々
轻奢々 2020-12-10 00:17

I had to do an implementation of a custom barrier class using locks as part of my course work. To test my LockBarrier class, I came up with a the following test

2条回答
  •  无人及你
    2020-12-10 01:00

    The code looks good to me. Maybe you can pass the LockBarrier to the Runnable instead of declaring it outside.

提交回复
热议问题