2

Can anyone give me brief idea about this? I have just used url connection to get the code and again url connection to get the access code.

I am using Java Servlet and not spring framework.

Ravi Kavaiya
  • 829
  • 6
  • 16
user6090970
  • 185
  • 1
  • 3
  • 14
  • JUnit doesn't provide any specific tool to test connection calls etc. It just provides a general framework for unit test – JeanValjean Mar 25 '16 at 07:23
  • Anyway, [this](http://stackoverflow.com/a/2597812/1339429) answer + Mockito may help you to understand how to organize a test for this use case – JeanValjean Mar 25 '16 at 07:25

0 Answers0