BS-10439 : Java methods

- Add check for no waiting event after the end of the test in the database