I have a class with a method which somtimes uses notifyAll()
.
class A{
public void method(*some args*) //sometime i call for notifyAll()
}
I want to build a test to see if class A has called for notifyAll()
@Test
public void test(){
A.method
boolean isNotified
}
how can I do it?