test_class.declarator: mHalo
test_class.modifier: private static
test_class.original_string: private static Halo mHalo;
test_class.type: Halo
test_class.var_name: mHalo
test_class.file: sdk-libs/halo-content/src/test/java/com/mobgen/halo/android/content/models/BatchErrorTest.java
test_class.identifier: BatchErrorTest
test_class.superclass: extends HaloRobolectricTest
test_case.body: @Test
      public void thatCanReachErrorInfoData() throws JSONException {
          JSONObject errorExtra = new JSONObject("{\n" +
                  "        \"error\": {\n" +
                  "          \"status\": 403,\n" +
                  "          \"message\": \"You can not update an instance of a module that does not belong to you or does not exist\",\n" +
                  "          \"extra\": {\n" +
                  "              \"field\": \"amount\",\n" +
                  "              \"error\": \"validator.8\",\n" +
                  "              \"message\": \"Please check the text field, it should be a string\"\n" +
                  "            },\n" +
                  "          \"type\": \"HaloError\"\n" +
                  "        }\n" +
                  "      }");
          BatchOperationResult instance = new BatchOperationResult(BatchOperator.DELETE, 0, false, errorExtra);
          BatchError error = instance.getDataError();
          BatchErrorInfo errorInfo = error.getError();
  
          assertThat(errorInfo.getStatus()).isEqualTo(403);
          assertThat(errorInfo.getType()).isEqualTo("HaloError");
          assertThat(errorInfo.getMessage()).contains("belong to you or does not exist");
          assertThat(errorInfo.getExtra().toString()).contains("validator.8");
      }
test_case.class_method_signature: BatchErrorTest.thatCanReachErrorInfoData()
test_case.full_signature: @Test public void thatCanReachErrorInfoData()
test_case.identifier: thatCanReachErrorInfoData
test_case.invocations: getDataError getError isEqualTo assertThat getStatus isEqualTo assertThat getType contains assertThat getMessage contains assertThat toString getExtra
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void thatCanReachErrorInfoData()
focal_class.declarator: mError
focal_class.modifier: @JsonField(name = "error")
focal_class.original_string: @JsonField(name = "error")
      BatchErrorInfo mError;
focal_class.type: BatchErrorInfo
focal_class.var_name: mError
focal_class.declarator: CREATOR = new Creator<BatchError>() {
          @Override
          public BatchError createFromParcel(Parcel in) {
              return new BatchError(in);
          }
  
          @Override
          public BatchError[] newArray(int size) {
              return new BatchError[size];
          }
      }
focal_class.modifier: public static final
focal_class.original_string: public static final Creator<BatchError> CREATOR = new Creator<BatchError>() {
          @Override
          public BatchError createFromParcel(Parcel in) {
              return new BatchError(in);
          }
  
          @Override
          public BatchError[] newArray(int size) {
              return new BatchError[size];
          }
      };
focal_class.type: Creator<BatchError>
focal_class.var_name: CREATOR
focal_class.file: sdk-libs/halo-content/src/main/java/com/mobgen/halo/android/content/models/BatchError.java
focal_class.identifier: BatchError
focal_class.interfaces: implements Parcelable
focal_class.class_method_signature: BatchError.BatchError()
focal_class.full_signature: protected  BatchError()
focal_class.identifier: BatchError
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  BatchError()
focal_class.class_method_signature: BatchError.describeContents()
focal_class.full_signature: @Override public int describeContents()
focal_class.identifier: describeContents
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int describeContents()
focal_class.class_method_signature: BatchError.BatchError(Parcel in)
focal_class.full_signature: protected  BatchError(Parcel in)
focal_class.identifier: BatchError
focal_class.modifiers: protected
focal_class.parameters: (Parcel in)
focal_class.signature:  BatchError(Parcel in)
focal_class.class_method_signature: BatchError.writeToParcel(Parcel dest, int flags)
focal_class.full_signature: @Override public void writeToParcel(Parcel dest, int flags)
focal_class.identifier: writeToParcel
focal_class.modifiers: @Override public
focal_class.parameters: (Parcel dest, int flags)
focal_class.return: void
focal_class.signature: void writeToParcel(Parcel dest, int flags)
focal_class.class_method_signature: BatchError.deserialize(@Nullable String batchError, @NonNull Parser.Factory parser)
focal_class.full_signature: @Nullable public static BatchError deserialize(@Nullable String batchError, @NonNull Parser.Factory parser)
focal_class.identifier: deserialize
focal_class.modifiers: @Nullable public static
focal_class.parameters: (@Nullable String batchError, @NonNull Parser.Factory parser)
focal_class.return: BatchError
focal_class.signature: BatchError deserialize(@Nullable String batchError, @NonNull Parser.Factory parser)
focal_class.class_method_signature: BatchError.getError()
focal_class.full_signature: @NonNull @Api(2.3) public BatchErrorInfo getError()
focal_class.identifier: getError
focal_class.modifiers: @NonNull @Api(2.3) public
focal_class.parameters: ()
focal_class.return: BatchErrorInfo
focal_class.signature: BatchErrorInfo getError()
focal_method.body: @NonNull
      @Api(2.3)
      public BatchErrorInfo getError() {
          return mError;
      }
focal_method.class_method_signature: BatchError.getError()
focal_method.full_signature: @NonNull @Api(2.3) public BatchErrorInfo getError()
focal_method.identifier: getError
focal_method.modifiers: @NonNull @Api(2.3) public
focal_method.parameters: ()
focal_method.return: BatchErrorInfo
focal_method.signature: BatchErrorInfo getError()