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/BatchOperationResultTest.java
test_class.identifier: BatchOperationResultTest
test_class.superclass: extends HaloRobolectricTest
test_case.body: @Test
      public void thatCanReadSuccessData() throws JSONException {
          BatchOperationResult instance = new BatchOperationResult(BatchOperator.CREATE, 0, true, new JSONObject("{\n" +
                  "        \"name\": \"From Android SDK\",\n" +
                  "        \"module\": \"586a47f836a6b01300ec9f00\",\n" +
                  "        \"tags\": [],\n" +
                  "        \"archivedAt\": null,\n" +
                  "        \"removedAt\": null,\n" +
                  "        \"publishedAt\": null,\n" +
                  "        \"createdBy\": \"Editor Editor\",\n" +
                  "        \"customerId\": 1,\n" +
                  "        \"values\": {},\n" +
                  "        \"pushSchedule\": null,\n" +
                  "        \"externalId\": null,\n" +
                  "        \"revision\": 0,\n" +
                  "        \"createdAt\": 1492610860696,\n" +
                  "        \"updatedAt\": null,\n" +
                  "        \"deletedAt\": null,\n" +
                  "        \"updatedBy\": null,\n" +
                  "        \"deletedBy\": null,\n" +
                  "        \"id\": \"5874c5f06a3a0d1e00c8039d\"\n" +
                  "      }"));
          BatchOperationResult parcelInstance = TestUtils.testParcel(instance, BatchOperationResult.CREATOR);
          assertThat(instance.getData().getItemId()).isEqualTo(parcelInstance.getData().getItemId());
          assertThat(instance.getData().getItemId()).isEqualTo("5874c5f06a3a0d1e00c8039d");
      }
test_case.class_method_signature: BatchOperationResultTest.thatCanReadSuccessData()
test_case.full_signature: @Test public void thatCanReadSuccessData()
test_case.identifier: thatCanReadSuccessData
test_case.invocations: testParcel isEqualTo assertThat getItemId getData getItemId getData isEqualTo assertThat getItemId getData
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void thatCanReadSuccessData()
focal_class.declarator: mOperation
focal_class.modifier: @JsonField(name = "operation")
focal_class.original_string: @JsonField(name = "operation")
      String mOperation;
focal_class.type: String
focal_class.var_name: mOperation
focal_class.declarator: mPosition
focal_class.modifier: @JsonField(name = "position")
focal_class.original_string: @JsonField(name = "position")
      int mPosition;
focal_class.type: int
focal_class.var_name: mPosition
focal_class.declarator: mSuccess
focal_class.modifier: @JsonField(name = "success")
focal_class.original_string: @JsonField(name = "success")
      boolean mSuccess;
focal_class.type: boolean
focal_class.var_name: mSuccess
focal_class.declarator: mData
focal_class.modifier: @JsonField(name = "data", typeConverter = BatchOperationResult.JSONObjectConverter.class)
focal_class.original_string: @JsonField(name = "data", typeConverter = BatchOperationResult.JSONObjectConverter.class)
      Object mData;
focal_class.type: Object
focal_class.var_name: mData
focal_class.declarator: CREATOR = new Creator<BatchOperationResult>() {
          @Override
          public BatchOperationResult createFromParcel(Parcel in) {
              return new BatchOperationResult(in);
          }
  
          @Override
          public BatchOperationResult[] newArray(int size) {
              return new BatchOperationResult[size];
          }
      }
focal_class.modifier: public static final
focal_class.original_string: public static final Creator<BatchOperationResult> CREATOR = new Creator<BatchOperationResult>() {
          @Override
          public BatchOperationResult createFromParcel(Parcel in) {
              return new BatchOperationResult(in);
          }
  
          @Override
          public BatchOperationResult[] newArray(int size) {
              return new BatchOperationResult[size];
          }
      };
focal_class.type: Creator<BatchOperationResult>
focal_class.var_name: CREATOR
focal_class.file: sdk-libs/halo-content/src/main/java/com/mobgen/halo/android/content/models/BatchOperationResult.java
focal_class.identifier: BatchOperationResult
focal_class.interfaces: implements Parcelable
focal_class.class_method_signature: BatchOperationResult.BatchOperationResult()
focal_class.full_signature: protected  BatchOperationResult()
focal_class.identifier: BatchOperationResult
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.signature:  BatchOperationResult()
focal_class.class_method_signature: BatchOperationResult.BatchOperationResult(String operation, int position, boolean success, Object data)
focal_class.full_signature: public  BatchOperationResult(String operation, int position, boolean success, Object data)
focal_class.identifier: BatchOperationResult
focal_class.modifiers: public
focal_class.parameters: (String operation, int position, boolean success, Object data)
focal_class.signature:  BatchOperationResult(String operation, int position, boolean success, Object data)
focal_class.class_method_signature: BatchOperationResult.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: BatchOperationResult.BatchOperationResult(Parcel in)
focal_class.full_signature: protected  BatchOperationResult(Parcel in)
focal_class.identifier: BatchOperationResult
focal_class.modifiers: protected
focal_class.parameters: (Parcel in)
focal_class.signature:  BatchOperationResult(Parcel in)
focal_class.class_method_signature: BatchOperationResult.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: BatchOperationResult.getPosition()
focal_class.full_signature: @Api(2.3) public int getPosition()
focal_class.identifier: getPosition
focal_class.modifiers: @Api(2.3) public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPosition()
focal_class.class_method_signature: BatchOperationResult.isSuccess()
focal_class.full_signature: @Api(2.3) public boolean isSuccess()
focal_class.identifier: isSuccess
focal_class.modifiers: @Api(2.3) public
focal_class.parameters: ()
focal_class.return: boolean
focal_class.signature: boolean isSuccess()
focal_class.class_method_signature: BatchOperationResult.getRawData()
focal_class.full_signature: @Api(2.3) @NonNull public String getRawData()
focal_class.identifier: getRawData
focal_class.modifiers: @Api(2.3) @NonNull public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRawData()
focal_class.class_method_signature: BatchOperationResult.getData()
focal_class.full_signature: @Api(2.3) @Nullable public HaloContentInstance getData()
focal_class.identifier: getData
focal_class.modifiers: @Api(2.3) @Nullable public
focal_class.parameters: ()
focal_class.return: HaloContentInstance
focal_class.signature: HaloContentInstance getData()
focal_class.class_method_signature: BatchOperationResult.getDataTruncate()
focal_class.full_signature: @Api(2.3) public int getDataTruncate()
focal_class.identifier: getDataTruncate
focal_class.modifiers: @Api(2.3) public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getDataTruncate()
focal_class.class_method_signature: BatchOperationResult.getDataError()
focal_class.full_signature: @Api(2.3) @Nullable public BatchError getDataError()
focal_class.identifier: getDataError
focal_class.modifiers: @Api(2.3) @Nullable public
focal_class.parameters: ()
focal_class.return: BatchError
focal_class.signature: BatchError getDataError()
focal_class.class_method_signature: BatchOperationResult.getOperation()
focal_class.full_signature: @NonNull @Api(2.3) public @BatchOperator.BatchOperation String getOperation()
focal_class.identifier: getOperation
focal_class.modifiers: @NonNull @Api(2.3) public @BatchOperator.BatchOperation
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getOperation()
focal_method.body: @Api(2.3)
      @Nullable
      public HaloContentInstance getData() {
          try {
              if (mSuccess && !mOperation.equals(BatchOperator.TRUNCATE)) {
                  return HaloContentInstance.deserialize(getRawData(), Halo.instance().framework().parser());
              }
          } catch (HaloParsingException parsingExcetion) {
              return null;
          }
          return null;
      }
focal_method.class_method_signature: BatchOperationResult.getData()
focal_method.full_signature: @Api(2.3) @Nullable public HaloContentInstance getData()
focal_method.identifier: getData
focal_method.invocations: equals deserialize getRawData parser framework instance
focal_method.modifiers: @Api(2.3) @Nullable public
focal_method.parameters: ()
focal_method.return: HaloContentInstance
focal_method.signature: HaloContentInstance getData()