Reflection for RapidJSON  0.0.2
Reflection for serializing/deserializing with RapidJSON
Public Member Functions | List of all members
JsonReflectorTests Class Reference

The JsonReflectorTests class tests RapidJSON wrapper which is used to ease code generation. More...

Inheritance diagram for JsonReflectorTests:
[legend]
Collaboration diagram for JsonReflectorTests:
[legend]

Public Member Functions

void setUp ()
 
void tearDown ()
 
void experiment ()
 
void testSerializePrimitives ()
 Tests serializing strings, numbers, arrays and boolean. More...
 
void testSerializeSimpleObjects ()
 Tests serializing objects. More...
 
void testSerializeNestedObjects ()
 Tests serializing nested object and arrays. More...
 
void testSerializeUniquePtr ()
 
void testSerializeSharedPtr ()
 
void testDeserializePrimitives ()
 Tests deserializing strings, numbers (int, float, double) and boolean. More...
 
void testDeserializeSimpleObjects ()
 Tests deserializing simple objects. More...
 
void testDeserializeNestedObjects ()
 Tests deserializing nested objects and arrays. More...
 
void testDeserializeUniquePtr ()
 
void testDeserializeSharedPtr ()
 
void testHandlingParseError ()
 Tests whether RAPIDJSON_NAMESPACE::ParseResult is thrown correctly when passing invalid JSON to fromJSON(). More...
 
void testHandlingTypeMismatch ()
 Tests whether JsonDeserializationError is thrown on type mismatch. More...
 

Detailed Description

The JsonReflectorTests class tests RapidJSON wrapper which is used to ease code generation.

Remarks
In these tests, the required reflection code is provided by hand so the generator isn't involved yet.

Definition at line 164 of file jsonreflector.cpp.

Member Function Documentation

◆ experiment()

void JsonReflectorTests::experiment ( )

◆ setUp()

void JsonReflectorTests::setUp ( )

Definition at line 203 of file jsonreflector.cpp.

◆ tearDown()

void JsonReflectorTests::tearDown ( )

Definition at line 207 of file jsonreflector.cpp.

◆ testDeserializeNestedObjects()

void JsonReflectorTests::testDeserializeNestedObjects ( )

Tests deserializing nested objects and arrays.

Definition at line 433 of file jsonreflector.cpp.

◆ testDeserializePrimitives()

void JsonReflectorTests::testDeserializePrimitives ( )

Tests deserializing strings, numbers (int, float, double) and boolean.

Definition at line 358 of file jsonreflector.cpp.

◆ testDeserializeSharedPtr()

void JsonReflectorTests::testDeserializeSharedPtr ( )

Definition at line 497 of file jsonreflector.cpp.

◆ testDeserializeSimpleObjects()

void JsonReflectorTests::testDeserializeSimpleObjects ( )

Tests deserializing simple objects.

Definition at line 414 of file jsonreflector.cpp.

◆ testDeserializeUniquePtr()

void JsonReflectorTests::testDeserializeUniquePtr ( )

Definition at line 475 of file jsonreflector.cpp.

◆ testHandlingParseError()

void JsonReflectorTests::testHandlingParseError ( )

Tests whether RAPIDJSON_NAMESPACE::ParseResult is thrown correctly when passing invalid JSON to fromJSON().

Definition at line 522 of file jsonreflector.cpp.

◆ testHandlingTypeMismatch()

void JsonReflectorTests::testHandlingTypeMismatch ( )

Tests whether JsonDeserializationError is thrown on type mismatch.

Definition at line 537 of file jsonreflector.cpp.

◆ testSerializeNestedObjects()

void JsonReflectorTests::testSerializeNestedObjects ( )

Tests serializing nested object and arrays.

Definition at line 269 of file jsonreflector.cpp.

◆ testSerializePrimitives()

void JsonReflectorTests::testSerializePrimitives ( )

Tests serializing strings, numbers, arrays and boolean.

Definition at line 214 of file jsonreflector.cpp.

◆ testSerializeSharedPtr()

void JsonReflectorTests::testSerializeSharedPtr ( )

Definition at line 327 of file jsonreflector.cpp.

◆ testSerializeSimpleObjects()

void JsonReflectorTests::testSerializeSimpleObjects ( )

Tests serializing objects.

Definition at line 251 of file jsonreflector.cpp.

◆ testSerializeUniquePtr()

void JsonReflectorTests::testSerializeUniquePtr ( )

Definition at line 299 of file jsonreflector.cpp.


The documentation for this class was generated from the following file: