@Test public void testNoOperations() throws FormatException, IOException { KeyPair source = KeyPair.fromSecretSeed("SCH27VUZZ6UAKB67BDNF6FA42YMBMQCBKXWGMFD5TZ6S5ZZCZFLRXKHS"); Account account = new Account(source, 2908908335136768L); try { Transaction transaction = new Transaction.Builder(account).build(); fail(); } catch (RuntimeException exception) { assertTrue(exception.getMessage().contains("At least one operation required")); assertEquals(new Long(2908908335136768L), account.getSequenceNumber()); } }
public long getSequenceNumber() { return mSequenceNumber; }
Transaction { public long getSequenceNumber() { return mSequenceNumber; } }
Transaction { public long getSequenceNumber() { return mSequenceNumber; } Transaction(KeyPair sourceAccount, int fee, long sequenceNumber, Operation[] operations, Memo memo, TimeBounds timeBounds); }
Transaction { public long getSequenceNumber() { return mSequenceNumber; } Transaction(KeyPair sourceAccount, int fee, long sequenceNumber, Operation[] operations, Memo memo, TimeBounds timeBounds); void sign(KeyPair signer); void sign(byte[] preimage); byte[] hash(); byte[] signatureBase(); KeyPair getSourceAccount(); long getSequenceNumber(); List<DecoratedSignature> getSignatures(); Memo getMemo(); Operation[] getOperations(); TimeBounds getTimeBounds(); int getFee(); kin.base.xdr.Transaction toXdr(); kin.base.xdr.TransactionEnvelope toEnvelopeXdr(); String toEnvelopeXdrBase64(); static Transaction fromEnvelopeXdr(String envelope); static Transaction fromEnvelopeXdr(TransactionEnvelope envelope); }
Transaction { public long getSequenceNumber() { return mSequenceNumber; } Transaction(KeyPair sourceAccount, int fee, long sequenceNumber, Operation[] operations, Memo memo, TimeBounds timeBounds); void sign(KeyPair signer); void sign(byte[] preimage); byte[] hash(); byte[] signatureBase(); KeyPair getSourceAccount(); long getSequenceNumber(); List<DecoratedSignature> getSignatures(); Memo getMemo(); Operation[] getOperations(); TimeBounds getTimeBounds(); int getFee(); kin.base.xdr.Transaction toXdr(); kin.base.xdr.TransactionEnvelope toEnvelopeXdr(); String toEnvelopeXdrBase64(); static Transaction fromEnvelopeXdr(String envelope); static Transaction fromEnvelopeXdr(TransactionEnvelope envelope);  }