1#include <test/jtx/CaptureLogs.h>
2#include <test/jtx/Env.h>
3#include <test/jtx/envconfig.h>
4#include <test/jtx/fee.h>
5#include <test/jtx/jtx_json.h>
6#include <test/jtx/seq.h>
7#include <test/jtx/ter.h>
8#include <test/jtx/ticket.h>
10#include <xrpl/beast/unit_test/suite.h>
11#include <xrpl/beast/utility/Journal.h>
12#include <xrpl/core/HashRouter.h>
13#include <xrpl/protocol/TER.h>
14#include <xrpl/protocol/jss.h>
34 testcase(
"No valid transactions in batch");
40 auto const alice =
Account{
"alice"};
47 auto transactionId =
jtx.stx->getTransactionID();
57 BEAST_EXPECT(logs.contains(
"No transaction to process!"));
TestcaseT testcase
Memberspace for declaring test cases.
bool setFlags(uint256 const &key, HashRouterFlags flags)
Set the flags on a hash.
Provides server functionality for clients.
virtual HashRouter & getHashRouter()=0
void run() override
Runs the suite.
void testAllBadHeldTransactions()
Immutable cryptographic account descriptor.
A transaction testing environment.
bool close(NetClock::time_point closeTime, std::optional< std::chrono::milliseconds > consensusDelay=std::nullopt)
Close and advance the ledger.
JTx jt(JsonValue &&jv, FN const &... fN)
Create a JTx from parameters.
void memoize(Account const &account)
Associate AccountID with account.
Set the expected result code for a JTx The test will fail if the code doesn't match.
json::Value create(Account const &account, std::uint32_t count)
Create one of more tickets.
std::unique_ptr< Config > envconfig()
creates and initializes a default configuration for jtx::Env
BEAST_DEFINE_TESTSUITE(AMMClawback, app, xrpl)
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Set the sequence number on a JTx.