Exercise debugLog writes in jtx unit tests (RIPD-1393)

This commit is contained in:
Scott Schurr
2017-01-26 18:16:23 -08:00
committed by Edward Hennis
parent f5af8b03de
commit 71b42dcec5
3 changed files with 16 additions and 1 deletions

View File

@@ -24,6 +24,7 @@
#include <ripple/json/json_reader.h> // Json::Reader
#include <ripple/protocol/STParsedJSON.h> // STParsedJSONObject
#include <ripple/beast/unit_test.h>
#include <test/jtx.h>
namespace ripple {
@@ -175,6 +176,9 @@ public:
{
using namespace InnerObjectFormatsUnitTestDetail;
// Instantiate a jtx::Env so debugLog writes are exercised.
test::jtx::Env env (*this);
for (auto const& test : testArray)
{
Json::Value req;

View File

@@ -24,6 +24,8 @@
#include <ripple/json/json_reader.h>
#include <ripple/json/to_string.h>
#include <ripple/beast/unit_test.h>
#include <test/jtx.h>
#include <memory>
#include <type_traits>
@@ -501,6 +503,9 @@ public:
void
run()
{
// Instantiate a jtx::Env so debugLog writes are exercised.
test::jtx::Env env (*this);
testFields();
testSerialization();
testParseJSONArray();