There is a button, by clicking I knock on the server in response I get json, depending on the content, perform the appropriate actions. How to cover this matter with dough? How to process a click is not a real method, but a mock.
- onesubmit to the input method "depending on the content I perform the appropriate actions", different json variants covering all branches in your method, if we are talking about testing your logic and not buttons - Stranger in the Q
|