Closed lky-bulbasaur closed 3 years ago
Where is the getState()
method? I couldn't find it in the code skeleton.
From what I have Googled, java.lang.Thread.getState()
can be used to check the state of a Thread. I wonder if this method will be used to strictly check the states of each thread in TA-only test cases.
Oh, it is not used in tests.
May I know that in TA-only test cases, will the thread states be checked using
getState()
? For example, when implementingPausePieceAction
, I might not necessarily use the suggestedinterrupt()
andnotifyAll()
to implement the same functionality. Will this affect the result of the TA-only tests?Thanks.