20 #ifndef RIPPLE_TEST_JTX_JTX_H_INCLUDED
21 #define RIPPLE_TEST_JTX_JTX_H_INCLUDED
23 #include <ripple/json/json_value.h>
24 #include <ripple/protocol/STTx.h>
25 #include <ripple/protocol/TER.h>
26 #include <test/jtx/basic_prop.h>
27 #include <test/jtx/requires.h>
125 template <
class Prop,
class... Args>
Set the expected result code for a JTx The test will fail if the code doesn't match.
prop_list & operator=(prop_list const &other)
std::shared_ptr< STTx const > stx
Json::Value & operator[](Key const &key)
JTx & operator=(JTx const &)=default
void set(std::unique_ptr< basic_prop > p)
Set a property If the property already exists, it is replaced.
Execution context for applying a JSON transaction.
JTx(Json::Value const &jv_)
std::function< void(Env &, JTx &)> signer
Prop * get()
Return a property if it exists.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::vector< std::unique_ptr< basic_prop > > list
prop_list(prop_list const &other)
void set(Args &&... args)
A transaction testing environment.