@Test public void given_updateSeq_is_array_then_isUpdateSeqNumeric_should_return_false() throws Exception { DbInfo info = new DbInfo("test"); String json = "{\"update_seq\":[123,\"dqwEFWEGRGQ34Q\"]}"; info.updateSeq = new ObjectMapper().readTree(json).get("update_seq"); assertFalse(info.isUpdateSeqNumeric()); }
public boolean isUpdateSeqNumeric() { return updateSeq != null && (updateSeq.isInt() || updateSeq.isLong()); }
DbInfo implements Serializable { public boolean isUpdateSeqNumeric() { return updateSeq != null && (updateSeq.isInt() || updateSeq.isLong()); } }
DbInfo implements Serializable { public boolean isUpdateSeqNumeric() { return updateSeq != null && (updateSeq.isInt() || updateSeq.isLong()); } @JsonCreator  DbInfo(@JsonProperty("db_name") String dbName); }
DbInfo implements Serializable { public boolean isUpdateSeqNumeric() { return updateSeq != null && (updateSeq.isInt() || updateSeq.isLong()); } @JsonCreator  DbInfo(@JsonProperty("db_name") String dbName); boolean isCompactRunning(); String getDbName(); int getDiskFormatVersion(); long getDiskSize(); long getDocCount(); int getDocDelCount(); long getInstanceStartTime(); int getPurgeSeq(); long getUpdateSeq(); String getUpdateSeqAsString(); boolean isUpdateSeqNumeric(); @JsonAnySetter void setUnknown(String key, Object value); Map<String, Object> getUnknownFields(); @Override boolean equals(Object o); @Override int hashCode(); }
DbInfo implements Serializable { public boolean isUpdateSeqNumeric() { return updateSeq != null && (updateSeq.isInt() || updateSeq.isLong()); } @JsonCreator  DbInfo(@JsonProperty("db_name") String dbName); boolean isCompactRunning(); String getDbName(); int getDiskFormatVersion(); long getDiskSize(); long getDocCount(); int getDocDelCount(); long getInstanceStartTime(); int getPurgeSeq(); long getUpdateSeq(); String getUpdateSeqAsString(); boolean isUpdateSeqNumeric(); @JsonAnySetter void setUnknown(String key, Object value); Map<String, Object> getUnknownFields(); @Override boolean equals(Object o); @Override int hashCode();  }