Add encoding size asserts
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 19 Sep 2019 19:20:16 +0000 (21:20 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 19 Sep 2019 19:25:41 +0000 (21:25 +0200)
commitde29c2a6141a9999152a21329308e81726d33305
tree82b0877e3d5a4bfe838ea97ca32194fb4615052e
parent847e52a362ef3749cc78e475b4875c876d20b530
Add encoding size asserts

There is a number of places where we check serialize/deserialize
operations through ByteArrayOutputStream. In order to check stability
(and evolution) of our serialization formats, it is useful to check
the sizes of the intermediate bytes.

JIRA: CONTROLLER-1919
Change-Id: I171894ba3791245a53fe39c2d3238d2341d8ffc4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
node/utils/stream/NormalizedNodeStreamReaderWriterTest.java
node/utils/stream/SerializationUtilsTest.java