Wait { public void releaseLock(Wait wait,Boolean isRelease){ wait.isReleaseThreadLock(isRelease); }  static void main(String[] args); void notReleaseLock(Wait wait,Boolean isRelease); void releaseLock(Wait wait,Boolean isRelease); void isReleaseThreadLock(Boolean isRelease); synchronized void threadWait(String name,Boolean isRelease); synchronized void notifyAllThread(Boolean isRelease);  }
@Test public void testReleaseLock() throws Exception { wait.releaseLock(wait,true); }