test_class.declarator: mCallbackFlag
test_class.modifier: private
test_class.original_string: private CallbackFlag mCallbackFlag;
test_class.type: CallbackFlag
test_class.var_name: mCallbackFlag
test_class.declarator: mHaloNetClient
test_class.modifier: private
test_class.original_string: private HaloNetClient mHaloNetClient;
test_class.type: HaloNetClient
test_class.var_name: mHaloNetClient
test_class.declarator: mFramework
test_class.modifier: private
test_class.original_string: private HaloFramework mFramework;
test_class.type: HaloFramework
test_class.var_name: mFramework
test_class.declarator: mMockServer
test_class.modifier: private
test_class.original_string: private MockServer mMockServer;
test_class.type: MockServer
test_class.var_name: mMockServer
test_class.declarator: mEndpointURL
test_class.modifier: private
test_class.original_string: private String mEndpointURL;
test_class.type: String
test_class.var_name: mEndpointURL
test_class.file: sdk/halo-framework/src/test/java/com/mobgen/halo/android/framework/network/client/HaloNetClientTest.java
test_class.identifier: HaloNetClientTest
test_class.superclass: extends HaloRobolectricTest
test_case.body: @Test
      public void thatMakeARequest() throws IOException {
          enqueueServerFile(mMockServer,GET_TEST_ITEM);
          HaloNetworkApi networkApi = givenAHaloNetWorkApi(mFramework,mEndpointURL);
          HaloRequest request = givenAGetRequest(networkApi);
          Response response = mHaloNetClient.request(request);
          assertThat(response).isNotNull();
          assertThat(response.isSuccessful()).isTrue();
      }
test_case.class_method_signature: HaloNetClientTest.thatMakeARequest()
test_case.full_signature: @Test public void thatMakeARequest()
test_case.identifier: thatMakeARequest
test_case.invocations: enqueueServerFile givenAHaloNetWorkApi givenAGetRequest request isNotNull assertThat isTrue assertThat isSuccessful
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void thatMakeARequest()
focal_class.declarator: mContext
focal_class.modifier: protected final
focal_class.original_string: protected final Context mContext;
focal_class.type: Context
focal_class.var_name: mContext
focal_class.declarator: mEndpoints
focal_class.modifier: private final
focal_class.original_string: private final HaloEndpointCluster mEndpoints;
focal_class.type: HaloEndpointCluster
focal_class.var_name: mEndpoints
focal_class.declarator: mDisableKitKatCertificate
focal_class.modifier: protected final
focal_class.original_string: protected final boolean mDisableKitKatCertificate;
focal_class.type: boolean
focal_class.var_name: mDisableKitKatCertificate
focal_class.declarator: mClient
focal_class.modifier: private
focal_class.original_string: private OkHttpClient mClient;
focal_class.type: OkHttpClient
focal_class.var_name: mClient
focal_class.file: sdk/halo-framework/src/main/java/com/mobgen/halo/android/framework/network/client/HaloNetClient.java
focal_class.identifier: HaloNetClient
focal_class.class_method_signature: HaloNetClient.HaloNetClient(@NonNull Context context, @NonNull OkHttpClient.Builder clientBuilder, @NonNull HaloEndpointCluster endpoints, boolean disableKitKatCertificate)
focal_class.full_signature: public  HaloNetClient(@NonNull Context context, @NonNull OkHttpClient.Builder clientBuilder, @NonNull HaloEndpointCluster endpoints, boolean disableKitKatCertificate)
focal_class.identifier: HaloNetClient
focal_class.modifiers: public
focal_class.parameters: (@NonNull Context context, @NonNull OkHttpClient.Builder clientBuilder, @NonNull HaloEndpointCluster endpoints, boolean disableKitKatCertificate)
focal_class.signature:  HaloNetClient(@NonNull Context context, @NonNull OkHttpClient.Builder clientBuilder, @NonNull HaloEndpointCluster endpoints, boolean disableKitKatCertificate)
focal_class.class_method_signature: HaloNetClient.buildCertificates(@NonNull OkHttpClient.Builder okBuilder)
focal_class.full_signature: @NonNull @Api(2.0) public OkHttpClient.Builder buildCertificates(@NonNull OkHttpClient.Builder okBuilder)
focal_class.identifier: buildCertificates
focal_class.modifiers: @NonNull @Api(2.0) public
focal_class.parameters: (@NonNull OkHttpClient.Builder okBuilder)
focal_class.return: OkHttpClient.Builder
focal_class.signature: OkHttpClient.Builder buildCertificates(@NonNull OkHttpClient.Builder okBuilder)
focal_class.class_method_signature: HaloNetClient.request(@NonNull HaloRequest haloRequest)
focal_class.full_signature: @Api(2.0) public Response request(@NonNull HaloRequest haloRequest)
focal_class.identifier: request
focal_class.modifiers: @Api(2.0) public
focal_class.parameters: (@NonNull HaloRequest haloRequest)
focal_class.return: Response
focal_class.signature: Response request(@NonNull HaloRequest haloRequest)
focal_class.class_method_signature: HaloNetClient.request(@NonNull HaloRequest haloRequest, @NonNull final TypeReference<T> type)
focal_class.full_signature: @SuppressWarnings("unchecked") @Api(2.0) public T request(@NonNull HaloRequest haloRequest, @NonNull final TypeReference<T> type)
focal_class.identifier: request
focal_class.modifiers: @SuppressWarnings("unchecked") @Api(2.0) public
focal_class.parameters: (@NonNull HaloRequest haloRequest, @NonNull final TypeReference<T> type)
focal_class.return: T
focal_class.signature: T request(@NonNull HaloRequest haloRequest, @NonNull final TypeReference<T> type)
focal_class.class_method_signature: HaloNetClient.request(@NonNull HaloRequest haloRequest, @NonNull Class<T> clazz)
focal_class.full_signature: @SuppressWarnings("unchecked") @Api(2.0) public T request(@NonNull HaloRequest haloRequest, @NonNull Class<T> clazz)
focal_class.identifier: request
focal_class.modifiers: @SuppressWarnings("unchecked") @Api(2.0) public
focal_class.parameters: (@NonNull HaloRequest haloRequest, @NonNull Class<T> clazz)
focal_class.return: T
focal_class.signature: T request(@NonNull HaloRequest haloRequest, @NonNull Class<T> clazz)
focal_class.class_method_signature: HaloNetClient.endpoints()
focal_class.full_signature: @Api(2.0) public HaloEndpointCluster endpoints()
focal_class.identifier: endpoints
focal_class.modifiers: @Api(2.0) public
focal_class.parameters: ()
focal_class.return: HaloEndpointCluster
focal_class.signature: HaloEndpointCluster endpoints()
focal_class.class_method_signature: HaloNetClient.ok()
focal_class.full_signature: @NonNull @Api(2.0) public OkHttpClient ok()
focal_class.identifier: ok
focal_class.modifiers: @NonNull @Api(2.0) public
focal_class.parameters: ()
focal_class.return: OkHttpClient
focal_class.signature: OkHttpClient ok()
focal_class.class_method_signature: HaloNetClient.overrideOk(@NonNull OkHttpClient.Builder builder)
focal_class.full_signature: @Api(2.0) public void overrideOk(@NonNull OkHttpClient.Builder builder)
focal_class.identifier: overrideOk
focal_class.modifiers: @Api(2.0) public
focal_class.parameters: (@NonNull OkHttpClient.Builder builder)
focal_class.return: void
focal_class.signature: void overrideOk(@NonNull OkHttpClient.Builder builder)
focal_class.class_method_signature: HaloNetClient.context()
focal_class.full_signature: @NonNull @Api(2.0) public Context context()
focal_class.identifier: context
focal_class.modifiers: @NonNull @Api(2.0) public
focal_class.parameters: ()
focal_class.return: Context
focal_class.signature: Context context()
focal_class.class_method_signature: HaloNetClient.closeCache()
focal_class.full_signature: @NonNull @Api(2.4) public void closeCache()
focal_class.identifier: closeCache
focal_class.modifiers: @NonNull @Api(2.4) public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void closeCache()
focal_method.body: @Api(2.0)
      public Response request(@NonNull HaloRequest haloRequest) throws HaloNetException {
          Request request = haloRequest.buildOkRequest();
          try {
              Response response = mClient.newCall(request).execute();
              if (response.isSuccessful()) {
                  return response;
              } else {
                  throw new HaloNetworkExceptionResolver().resolve(response);
              }
          } catch (HaloNetException e) {
              throw e;
          } catch (Exception e) {
              throw new HaloNetworkExceptionResolver().resolve(e, request, HaloUtils.isNetworkConnected(mContext));
          }
      }
focal_method.class_method_signature: HaloNetClient.request(@NonNull HaloRequest haloRequest)
focal_method.full_signature: @Api(2.0) public Response request(@NonNull HaloRequest haloRequest)
focal_method.identifier: request
focal_method.invocations: buildOkRequest execute newCall isSuccessful resolve resolve isNetworkConnected
focal_method.modifiers: @Api(2.0) public
focal_method.parameters: (@NonNull HaloRequest haloRequest)
focal_method.return: Response
focal_method.signature: Response request(@NonNull HaloRequest haloRequest)