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/exceptions/HaloNetworkExceptionResolverTest.java
test_class.identifier: HaloNetworkExceptionResolverTest
test_class.superclass: extends HaloRobolectricTest
test_case.body: @Test
      public void thatHandleNotFoundExceptionIsThrown() throws IOException {
          enqueueServerError(mMockServer,404);
          HaloNetworkApi networkApi = givenAHaloNetWorkApi(mFramework,mEndpointURL);
          HaloRequest request = givenAGetRequest(networkApi);
          HaloNetworkExceptionResolver haloNetworkExceptionResolver = new HaloNetworkExceptionResolver();
          try{
              haloNetworkExceptionResolver.resolve(request.execute());
          }
          catch (HaloNotFoundException haloNotFoundException){
              assertThat(haloNotFoundException).isNotNull();
              assertThat(haloNotFoundException.getMessage()).contains("404");
          }
      }
test_case.class_method_signature: HaloNetworkExceptionResolverTest.thatHandleNotFoundExceptionIsThrown()
test_case.full_signature: @Test public void thatHandleNotFoundExceptionIsThrown()
test_case.identifier: thatHandleNotFoundExceptionIsThrown
test_case.invocations: enqueueServerError givenAHaloNetWorkApi givenAGetRequest resolve execute isNotNull assertThat contains assertThat getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void thatHandleNotFoundExceptionIsThrown()
focal_class.file: sdk/halo-framework/src/main/java/com/mobgen/halo/android/framework/network/exceptions/HaloNetworkExceptionResolver.java
focal_class.identifier: HaloNetworkExceptionResolver
focal_class.class_method_signature: HaloNetworkExceptionResolver.resolve(@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)
focal_class.full_signature: @NonNull @Api(2.0) public HaloNetException resolve(@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)
focal_class.identifier: resolve
focal_class.modifiers: @NonNull @Api(2.0) public
focal_class.parameters: (@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)
focal_class.return: HaloNetException
focal_class.signature: HaloNetException resolve(@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)
focal_class.class_method_signature: HaloNetworkExceptionResolver.resolve(@NonNull Response response)
focal_class.full_signature: @NonNull @Api(2.0) public HaloNetException resolve(@NonNull Response response)
focal_class.identifier: resolve
focal_class.modifiers: @NonNull @Api(2.0) public
focal_class.parameters: (@NonNull Response response)
focal_class.return: HaloNetException
focal_class.signature: HaloNetException resolve(@NonNull Response response)
focal_method.body: @NonNull
      @Api(2.0)
      public HaloNetException resolve(@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected) {
          HaloNetException exceptionMapped;
          String url = request != null ? request.url().toString() : null;
          if (!isNetworkConnected) {
              exceptionMapped = new HaloConnectionException("The device has not connectivity to reach the server on " + url, exception);
          } else {
              exceptionMapped = new HaloUnknownServerException("An unknown exception has been produced when performing the request: " + exception.getMessage(), exception);
          }
          return exceptionMapped;
      }
focal_method.class_method_signature: HaloNetworkExceptionResolver.resolve(@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)
focal_method.full_signature: @NonNull @Api(2.0) public HaloNetException resolve(@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)
focal_method.identifier: resolve
focal_method.invocations: toString url getMessage
focal_method.modifiers: @NonNull @Api(2.0) public
focal_method.parameters: (@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)
focal_method.return: HaloNetException
focal_method.signature: HaloNetException resolve(@NonNull Exception exception, @Nullable Request request, boolean isNetworkConnected)