Reflection for RapidJSON 0.0.16
Reflection for serializing/deserializing with RapidJSON
Loading...
Searching...
No Matches
JsonReflectorBoostHanaTests Class Reference

The JsonReflectorBoostHanaTests class tests the integration of Boost.Hana with the RapidJSON wrapper. More...

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

Public Member Functions

void setUp () override
 
void tearDown () override
 
void testSerializePrimitives ()
 
void testSerializeSimpleObjects ()
 Tests serializing objects.
 
void testSerializeNestedObjects ()
 Tests serializing nested object and arrays.
 
void testDeserializePrimitives ()
 
void testDeserializeSimpleObjects ()
 Tests deserializing simple objects.
 
void testDeserializeNestedObjects ()
 Tests deserializing nested objects and arrays.
 
void testHandlingTypeMismatch ()
 Tests whether JsonDeserializationError is thrown on type mismatch.
 

Detailed Description

The JsonReflectorBoostHanaTests class tests the integration of Boost.Hana with the RapidJSON wrapper.

Remarks
In these tests, the reflection is provided through Boost.Hana so the code generator is not involved.

Definition at line 49 of file jsonreflector-boosthana.cpp.

Member Function Documentation

◆ setUp()

void JsonReflectorBoostHanaTests::setUp ( )
override

Definition at line 75 of file jsonreflector-boosthana.cpp.

◆ tearDown()

void JsonReflectorBoostHanaTests::tearDown ( )
override

Definition at line 79 of file jsonreflector-boosthana.cpp.

◆ testDeserializeNestedObjects()

void JsonReflectorBoostHanaTests::testDeserializeNestedObjects ( )

Tests deserializing nested objects and arrays.

Definition at line 142 of file jsonreflector-boosthana.cpp.

◆ testDeserializePrimitives()

void JsonReflectorBoostHanaTests::testDeserializePrimitives ( )

◆ testDeserializeSimpleObjects()

void JsonReflectorBoostHanaTests::testDeserializeSimpleObjects ( )

Tests deserializing simple objects.

Definition at line 127 of file jsonreflector-boosthana.cpp.

◆ testHandlingTypeMismatch()

void JsonReflectorBoostHanaTests::testHandlingTypeMismatch ( )

Tests whether JsonDeserializationError is thrown on type mismatch.

Definition at line 174 of file jsonreflector-boosthana.cpp.

◆ testSerializeNestedObjects()

void JsonReflectorBoostHanaTests::testSerializeNestedObjects ( )

Tests serializing nested object and arrays.

Definition at line 101 of file jsonreflector-boosthana.cpp.

◆ testSerializePrimitives()

void JsonReflectorBoostHanaTests::testSerializePrimitives ( )

◆ testSerializeSimpleObjects()

void JsonReflectorBoostHanaTests::testSerializeSimpleObjects ( )

Tests serializing objects.

Definition at line 86 of file jsonreflector-boosthana.cpp.


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