@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Transaction)) return false; Transaction that = (Transaction) o; return getSize() == that.getSize() && getVersion() == that.getVersion() && Objects.equals(getTransactionId(), that.getTransactionId()) && getType() == that.getType() && Objects.equals(getAttributes(), that.getAttributes()) && Objects.equals(getInputs(), that.getInputs()) && Objects.equals(getOutputs(), that.getOutputs()) && Objects.equals(getSysFee(), that.getSysFee()) && Objects.equals(getNetFee(), that.getNetFee()) && Objects.equals(getScripts(), that.getScripts()) && Objects.equals(getScript(), that.getScript()) && Objects.equals(getGas(), that.getGas()) && Objects.equals(getNonce(), that.getNonce()) && Objects.equals(getBlockHash(), that.getBlockHash()) && Objects.equals(getConfirmations(), that.getConfirmations()) && Objects.equals(getBlockTime(), that.getBlockTime()); }
@Override public int hashCode() { return Objects.hash(getTransactionId(), getSize(), getType(), getVersion(), getAttributes(), getInputs(), getOutputs(), getSysFee(), getNetFee(), getScripts(), getScript(), getGas(), getNonce(), getBlockHash(), getConfirmations(), getBlockTime()); }
); assertThat( getTransaction.getTransaction().getVersion(), is(0) );