test_class.declarator: USER_ID = 1111007
test_class.modifier: public static final
test_class.original_string: public static final int USER_ID = 1111007;
test_class.type: int
test_class.var_name: USER_ID
test_class.declarator: PASSWORD = "n1c3try"
test_class.modifier: public static final
test_class.original_string: public static final String PASSWORD = "n1c3try";
test_class.type: String
test_class.var_name: PASSWORD
test_class.declarator: mockitoRule = MockitoJUnit.rule()
test_class.modifier: @Rule
      public
test_class.original_string: @Rule
      public MockitoRule mockitoRule = MockitoJUnit.rule();
test_class.type: MockitoRule
test_class.var_name: mockitoRule
test_class.declarator: mockWebService
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private WebService mockWebService;
test_class.type: WebService
test_class.var_name: mockWebService
test_class.declarator: mockLoginInterface
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private LoginInterface mockLoginInterface;
test_class.type: LoginInterface
test_class.var_name: mockLoginInterface
test_class.declarator: responseArgumentCaptor
test_class.modifier: @Captor
      private
test_class.original_string: @Captor
      private ArgumentCaptor<Response> responseArgumentCaptor;
test_class.type: ArgumentCaptor<Response>
test_class.var_name: responseArgumentCaptor
test_class.file: app/src/test/java/com/jeroenmols/mockitoexample/UserTest.java
test_class.identifier: UserTest
test_case.body: @Test
      public void verifyInteractionParameters() throws Exception {
          User user = new User(mockWebService, USER_ID, PASSWORD);
  
          user.login(null);
  
          verify(mockWebService).login(anyInt(), anyString(), any(Response.class));
          verify(mockWebService).login(eq(USER_ID), eq(PASSWORD), any(Response.class));
          verify(mockWebService).login(not(eq(0)), not(eq("12345678")), any(Response.class));
          verify(mockWebService).login(gt(0), startsWith("n1"), any(Response.class));
          verify(mockWebService).login(leq(USER_ID), contains("c3"), isNotNull(Response.class));
          verify(mockWebService).login(and(gt(0), lt(Integer.MAX_VALUE)), matches("n[1-9]{1}c[1-9]{1}[a-z]{3}"), isNotNull(Response.class));
  
          // See Mockito.Matchers and Mockito.AdditionalMatchers for all matchers
          // http://site.mockito.org/mockito/docs/current/org/mockito/Matchers.html
          // http://site.mockito.org/mockito/docs/current/org/mockito/AdditionalMatchers.html
      }
test_case.class_method_signature: UserTest.verifyInteractionParameters()
test_case.full_signature: @Test public void verifyInteractionParameters()
test_case.identifier: verifyInteractionParameters
test_case.invocations: login login verify anyInt anyString any login verify eq eq any login verify not eq not eq any login verify gt startsWith any login verify leq contains isNotNull login verify and gt lt matches isNotNull
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void verifyInteractionParameters()
focal_class.declarator: webService
focal_class.modifier: private final
focal_class.original_string: private final WebService webService;
focal_class.type: WebService
focal_class.var_name: webService
focal_class.declarator: userId
focal_class.modifier: private final
focal_class.original_string: private final int userId;
focal_class.type: int
focal_class.var_name: userId
focal_class.declarator: password
focal_class.modifier: private final
focal_class.original_string: private final String password;
focal_class.type: String
focal_class.var_name: password
focal_class.file: app/src/main/java/com/jeroenmols/mockitoexample/User.java
focal_class.identifier: User
focal_class.class_method_signature: User.User(WebService webService, int userId, String password)
focal_class.full_signature: public  User(WebService webService, int userId, String password)
focal_class.identifier: User
focal_class.modifiers: public
focal_class.parameters: (WebService webService, int userId, String password)
focal_class.signature:  User(WebService webService, int userId, String password)
focal_class.class_method_signature: User.login(final LoginInterface loginInterface)
focal_class.full_signature: public void login(final LoginInterface loginInterface)
focal_class.identifier: login
focal_class.modifiers: public
focal_class.parameters: (final LoginInterface loginInterface)
focal_class.return: void
focal_class.signature: void login(final LoginInterface loginInterface)
focal_class.class_method_signature: User.logout()
focal_class.full_signature: public void logout()
focal_class.identifier: logout
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void logout()
focal_class.class_method_signature: User.sendMessage(String message)
focal_class.full_signature: public void sendMessage(String message)
focal_class.identifier: sendMessage
focal_class.modifiers: public
focal_class.parameters: (String message)
focal_class.return: void
focal_class.signature: void sendMessage(String message)
focal_class.class_method_signature: User.getMessages()
focal_class.full_signature: public void getMessages()
focal_class.identifier: getMessages
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void getMessages()
focal_method.body: public void login(final LoginInterface loginInterface) {
          if (webService.isNetworkOffline()) {
              loginInterface.onLoginFailed();
              return;
          }
  
          Response response = new Response() {
              @Override
              public void onRequestCompleted(boolean isSuccess, String data) {
                  if (isSuccess) {
                      loginInterface.onLoginSuccess();
                  } else {
                      loginInterface.onLoginFailed();
                  }
              }
          };
          webService.login(userId, password, response);
      }
focal_method.class_method_signature: User.login(final LoginInterface loginInterface)
focal_method.full_signature: public void login(final LoginInterface loginInterface)
focal_method.identifier: login
focal_method.invocations: isNetworkOffline onLoginFailed onLoginSuccess onLoginFailed login
focal_method.modifiers: public
focal_method.parameters: (final LoginInterface loginInterface)
focal_method.return: void
focal_method.signature: void login(final LoginInterface loginInterface)