rippled
Public Member Functions | Protected Member Functions | Protected Attributes | Static Private Member Functions | List of all members
Json::JsonWriter_test Class Reference
Inheritance diagram for Json::JsonWriter_test:
Inheritance graph
[legend]
Collaboration diagram for Json::JsonWriter_test:
Collaboration graph
[legend]

Public Member Functions

void testTrivial ()
 
void testNearTrivial ()
 
void testPrimitives ()
 
void testEmpty ()
 
void testEscaping ()
 
void testArray ()
 
void testLongArray ()
 
void testEmbeddedArraySimple ()
 
void testObject ()
 
void testComplexObject ()
 
void testJson ()
 
void run () override
 
template<class S , class T >
bool expectEquals (S actual, T expected, std::string const &message="")
 
template<class S , class T >
bool expectNotEquals (S actual, T expected, std::string const &message="")
 
template<class Collection >
bool expectCollectionEquals (Collection const &actual, Collection const &expected, std::string const &message="")
 
template<class Exception , class Functor >
bool expectException (Functor f, std::string const &message="")
 
template<class Functor >
bool expectException (Functor f, std::string const &message="")
 

Protected Member Functions

void setup (std::string const &testName)
 
void expectResult (std::string const &expected, std::string const &message="")
 

Protected Attributes

std::string output_
 
std::unique_ptr< Json::Writerwriter_
 

Static Private Member Functions

static std::string addPrefix (std::string const &message)
 

Detailed Description

Definition at line 27 of file Writer_test.cpp.

Member Function Documentation

◆ testTrivial()

void Json::JsonWriter_test::testTrivial ( )

Definition at line 31 of file Writer_test.cpp.

◆ testNearTrivial()

void Json::JsonWriter_test::testNearTrivial ( )

Definition at line 39 of file Writer_test.cpp.

◆ testPrimitives()

void Json::JsonWriter_test::testPrimitives ( )

Definition at line 48 of file Writer_test.cpp.

◆ testEmpty()

void Json::JsonWriter_test::testEmpty ( )

Definition at line 80 of file Writer_test.cpp.

◆ testEscaping()

void Json::JsonWriter_test::testEscaping ( )

Definition at line 94 of file Writer_test.cpp.

◆ testArray()

void Json::JsonWriter_test::testArray ( )

Definition at line 118 of file Writer_test.cpp.

◆ testLongArray()

void Json::JsonWriter_test::testLongArray ( )

Definition at line 128 of file Writer_test.cpp.

◆ testEmbeddedArraySimple()

void Json::JsonWriter_test::testEmbeddedArraySimple ( )

Definition at line 140 of file Writer_test.cpp.

◆ testObject()

void Json::JsonWriter_test::testObject ( )

Definition at line 151 of file Writer_test.cpp.

◆ testComplexObject()

void Json::JsonWriter_test::testComplexObject ( )

Definition at line 162 of file Writer_test.cpp.

◆ testJson()

void Json::JsonWriter_test::testJson ( )

Definition at line 186 of file Writer_test.cpp.

◆ run()

void Json::JsonWriter_test::run ( )
override

Definition at line 199 of file Writer_test.cpp.

◆ setup()

void ripple::test::TestOutputSuite::setup ( std::string const &  testName)
protectedinherited

Definition at line 37 of file TestOutputSuite.h.

◆ expectResult()

void ripple::test::TestOutputSuite::expectResult ( std::string const &  expected,
std::string const &  message = "" 
)
protectedinherited

Definition at line 46 of file TestOutputSuite.h.

◆ expectEquals()

template<class S , class T >
bool ripple::TestSuite::expectEquals ( actual,
expected,
std::string const &  message = "" 
)
inherited

Definition at line 33 of file TestSuite.h.

◆ expectNotEquals()

template<class S , class T >
bool ripple::TestSuite::expectNotEquals ( actual,
expected,
std::string const &  message = "" 
)
inherited

Definition at line 51 of file TestSuite.h.

◆ expectCollectionEquals()

template<class Collection >
bool ripple::TestSuite::expectCollectionEquals ( Collection const &  actual,
Collection const &  expected,
std::string const &  message = "" 
)
inherited

Definition at line 69 of file TestSuite.h.

◆ expectException() [1/2]

template<class Exception , class Functor >
bool ripple::TestSuite::expectException ( Functor  f,
std::string const &  message = "" 
)
inherited

Definition at line 99 of file TestSuite.h.

◆ expectException() [2/2]

template<class Functor >
bool ripple::TestSuite::expectException ( Functor  f,
std::string const &  message = "" 
)
inherited

Definition at line 115 of file TestSuite.h.

◆ addPrefix()

static std::string ripple::TestSuite::addPrefix ( std::string const &  message)
staticprivateinherited

Definition at line 131 of file TestSuite.h.

Member Data Documentation

◆ output_

std::string ripple::test::TestOutputSuite::output_
protectedinherited

Definition at line 33 of file TestOutputSuite.h.

◆ writer_

std::unique_ptr<Json::Writer> ripple::test::TestOutputSuite::writer_
protectedinherited

Definition at line 34 of file TestOutputSuite.h.