test_class.declarator: connectivityManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      ConnectivityManager connectivityManager;
test_class.type: ConnectivityManager
test_class.var_name: connectivityManager
test_class.declarator: telephonyManager
test_class.modifier: @Mock
test_class.original_string: @Mock
      TelephonyManager telephonyManager;
test_class.type: TelephonyManager
test_class.var_name: telephonyManager
test_class.declarator: userDao
test_class.modifier: @Mock
test_class.original_string: @Mock
      UserDao userDao;
test_class.type: UserDao
test_class.var_name: userDao
test_class.declarator: authService
test_class.modifier: @Mock
test_class.original_string: @Mock
      FormRemoteService authService;
test_class.type: FormRemoteService
test_class.var_name: authService
test_class.declarator: loginService
test_class.modifier: @InjectMocks
test_class.original_string: @InjectMocks
      LoginServiceImpl loginService;
test_class.type: LoginServiceImpl
test_class.var_name: loginService
test_class.declarator: username = "Jack"
test_class.modifier: private
test_class.original_string: private String username = "Jack";
test_class.type: String
test_class.var_name: username
test_class.declarator: password = "123456"
test_class.modifier: private
test_class.original_string: private String password = "123456";
test_class.type: String
test_class.var_name: password
test_class.declarator: expectedUrl = "http://35.61.65.113:8443/"
test_class.modifier: private
test_class.original_string: private String expectedUrl = "http://35.61.65.113:8443/";
test_class.type: String
test_class.var_name: expectedUrl
test_class.declarator: jack = new User(username, EncryptHelper.encrypt(password))
test_class.modifier: private
test_class.original_string: private User jack = new User(username, EncryptHelper.encrypt(password));
test_class.type: User
test_class.var_name: jack
test_class.file: app/src/test/java/org/unicef/rapidreg/service/impl/LoginServiceImplTest.java
test_class.identifier: LoginServiceImplTest
test_case.body: @Test
      public void should_return_false_when_password_is_empty() {
          assertThat(loginService.isPasswordValid(null), CoreMatchers.is(false));
          assertThat(loginService.isPasswordValid(""), CoreMatchers.is(false));
      }
test_case.class_method_signature: LoginServiceImplTest.should_return_false_when_password_is_empty()
test_case.full_signature: @Test public void should_return_false_when_password_is_empty()
test_case.identifier: should_return_false_when_password_is_empty
test_case.invocations: assertThat isPasswordValid is assertThat isPasswordValid is
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void should_return_false_when_password_is_empty()
focal_class.declarator: TAG = LoginServiceImpl.class.getSimpleName()
focal_class.modifier: private static final
focal_class.original_string: private static final String TAG = LoginServiceImpl.class.getSimpleName();
focal_class.type: String
focal_class.var_name: TAG
focal_class.declarator: connectivityManager
focal_class.modifier: private
focal_class.original_string: private ConnectivityManager connectivityManager;
focal_class.type: ConnectivityManager
focal_class.var_name: connectivityManager
focal_class.declarator: telephonyManager
focal_class.modifier: private
focal_class.original_string: private TelephonyManager telephonyManager;
focal_class.type: TelephonyManager
focal_class.var_name: telephonyManager
focal_class.declarator: userDao
focal_class.modifier: private
focal_class.original_string: private UserDao userDao;
focal_class.type: UserDao
focal_class.var_name: userDao
focal_class.declarator: compositeSubscription
focal_class.modifier: private
focal_class.original_string: private CompositeSubscription compositeSubscription;
focal_class.type: CompositeSubscription
focal_class.var_name: compositeSubscription
focal_class.file: app/src/main/java/org/unicef/rapidreg/service/impl/LoginServiceImpl.java
focal_class.identifier: LoginServiceImpl
focal_class.interfaces: implements org.unicef.rapidreg.service
          .LoginService
focal_class.class_method_signature: LoginServiceImpl.LoginServiceImpl(ConnectivityManager connectivityManager,
                              TelephonyManager telephonyManager,
                              UserDao userDao)
focal_class.full_signature: public  LoginServiceImpl(ConnectivityManager connectivityManager,
                              TelephonyManager telephonyManager,
                              UserDao userDao)
focal_class.identifier: LoginServiceImpl
focal_class.modifiers: public
focal_class.parameters: (ConnectivityManager connectivityManager,
                              TelephonyManager telephonyManager,
                              UserDao userDao)
focal_class.signature:  LoginServiceImpl(ConnectivityManager connectivityManager,
                              TelephonyManager telephonyManager,
                              UserDao userDao)
focal_class.class_method_signature: LoginServiceImpl.isOnline()
focal_class.full_signature: @Override public boolean isOnline()
focal_class.identifier: isOnline
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isOnline()
focal_class.class_method_signature: LoginServiceImpl.loginOnline(final String username,
                              final String password,
                              final String url,
                              String imei,
                              final LoginCallback callback)
focal_class.full_signature: @Override public void loginOnline(final String username,
                              final String password,
                              final String url,
                              String imei,
                              final LoginCallback callback)
focal_class.identifier: loginOnline
focal_class.modifiers: @Override public
focal_class.parameters: (final String username,
                              final String password,
                              final String url,
                              String imei,
                              final LoginCallback callback)
focal_class.return: void
focal_class.signature: void loginOnline(final String username,
                              final String password,
                              final String url,
                              String imei,
                              final LoginCallback callback)
focal_class.class_method_signature: LoginServiceImpl.loginOffline(String username, String password, String url, LoginCallback callback)
focal_class.full_signature: @Override public void loginOffline(String username, String password, String url, LoginCallback callback)
focal_class.identifier: loginOffline
focal_class.modifiers: @Override public
focal_class.parameters: (String username, String password, String url, LoginCallback callback)
focal_class.return: void
focal_class.signature: void loginOffline(String username, String password, String url, LoginCallback callback)
focal_class.class_method_signature: LoginServiceImpl.getSessionId(Headers headers)
focal_class.full_signature: private String getSessionId(Headers headers)
focal_class.identifier: getSessionId
focal_class.modifiers: private
focal_class.parameters: (Headers headers)
focal_class.return: String
focal_class.signature: String getSessionId(Headers headers)
focal_class.class_method_signature: LoginServiceImpl.destroy()
focal_class.full_signature: @Override public void destroy()
focal_class.identifier: destroy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void destroy()
focal_class.class_method_signature: LoginServiceImpl.loadLastLoginServerUrl()
focal_class.full_signature: @Override public String loadLastLoginServerUrl()
focal_class.identifier: loadLastLoginServerUrl
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String loadLastLoginServerUrl()
focal_class.class_method_signature: LoginServiceImpl.isUsernameValid(String username)
focal_class.full_signature: @Override public boolean isUsernameValid(String username)
focal_class.identifier: isUsernameValid
focal_class.modifiers: @Override public
focal_class.parameters: (String username)
focal_class.return: boolean
focal_class.signature: boolean isUsernameValid(String username)
focal_class.class_method_signature: LoginServiceImpl.isPasswordValid(String password)
focal_class.full_signature: @Override public boolean isPasswordValid(String password)
focal_class.identifier: isPasswordValid
focal_class.modifiers: @Override public
focal_class.parameters: (String password)
focal_class.return: boolean
focal_class.signature: boolean isPasswordValid(String password)
focal_class.class_method_signature: LoginServiceImpl.isUrlValid(String url)
focal_class.full_signature: @Override public boolean isUrlValid(String url)
focal_class.identifier: isUrlValid
focal_class.modifiers: @Override public
focal_class.parameters: (String url)
focal_class.return: boolean
focal_class.signature: boolean isUrlValid(String url)
focal_class.class_method_signature: LoginServiceImpl.getBaseUrl()
focal_class.full_signature: @Override protected String getBaseUrl()
focal_class.identifier: getBaseUrl
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getBaseUrl()
focal_class.superclass: extends BaseRetrofitService<LoginRepository>
focal_method.body: @Override
      public boolean isPasswordValid(String password) {
          return password != null && password.matches("\\A(?=.*[a-zA-Z])(?=.*[0-9]).{8,}\\z");
      }
focal_method.class_method_signature: LoginServiceImpl.isPasswordValid(String password)
focal_method.full_signature: @Override public boolean isPasswordValid(String password)
focal_method.identifier: isPasswordValid
focal_method.invocations: matches
focal_method.modifiers: @Override public
focal_method.parameters: (String password)
focal_method.return: boolean
focal_method.signature: boolean isPasswordValid(String password)