
|
If you were logged in you would be able to see more operations.
|
|
|
| Labels: |
|
| User impact: |
Medium
|
| Similar Issues: |
|
|
Today we call Thread.sleep() to be sure that asynchronous processing has completed.
For negative tests a far better approach is to programmatically register exception listeners that can catch expected exceptions and that immediately after that allows the processing to continue. This improvement will lead to both significantly faster and more robust negative tests.
|
|
Description
|
Today we call Thread.sleep() to be sure that asynchronous processing has completed.
For negative tests a far better approach is to programmatically register exception listeners that can catch expected exceptions and that immediately after that allows the processing to continue. This improvement will lead to both significantly faster and more robust negative tests. |
Show » |
|
We can now write negativetests like:
Compared to the old timer-based way, e.g.: