REP-001 - Testdata for serialization formats

From RestAuth
Jump to: navigation, search

This document specifies REP-002 - Testdata for serialization formats, which specifies testdata that can be used by serializers/deserializers in different serialization formats. The testdata itself is specified in JSON<ref name="rfc 4627" />.

Introduction

In general, The following should be true for every testcase:

deserialize(serialize(testcase)) == testcase

This means that deserializing serialized content should always result in an identical value and vice versa.

Testcases

The testcases are available under a separate URL where they can be fetched e.g. by unittest suites:

 https://restauth.net/rep-001.json

References

<references> <ref name="rfc 4627">Crockford, D., "The application/json Media Type for JavaScript Object Notation (JSON)", RFC 4627, July 2006.</ref> </references>

Authorship information

  • 2014, 2015, Mathias Ertl, mati@restauth.net