All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.arextest.diff.handler.verify.VerifyObjectParse Maven / Gradle / Ivy

There is a newer version: 0.2.15
Show newest version
package com.arextest.diff.handler.verify;

import com.arextest.diff.model.parse.MsgObjCombination;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;

public class VerifyObjectParse {

  public boolean verify(MsgObjCombination msgObjCombination) {
    Object baseObj = msgObjCombination.getBaseObj();
    Object testObj = msgObjCombination.getTestObj();

    if (baseObj instanceof ObjectNode && testObj instanceof ObjectNode) {
      return true;
    }

    if (baseObj instanceof ArrayNode && testObj instanceof ArrayNode) {
      return true;
    }
    return false;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy