Skip to content
This repository has been archived by the owner on Mar 11, 2023. It is now read-only.

Entities serialization tests #109

Open
DanielaSfregola opened this issue Jan 28, 2017 · 2 comments
Open

Entities serialization tests #109

DanielaSfregola opened this issue Jan 28, 2017 · 2 comments

Comments

@DanielaSfregola
Copy link
Owner

We should write explicit tests on how we serialize/deserialize each entity...

....an opportunity to use Random Data Generator here?

@catalin-ursachi
Copy link
Contributor

Would be happy to contribute. 🙂 I'm not sure which entities it refers to, or what kind of serialization/deserialization would be covered?

@DanielaSfregola
Copy link
Owner Author

Hi @catalin-ursachi,
at present we are missing dedicated tests for serialization/deserialization for any of our entities.

Let's take for example the User case class. We should write a test that works as follows:

  • take a json from tweeter that represent a user entity
  • serialize it in to the case class User
  • deserailize User back to json: the two jsons (the one produced from Twitter and the one produced from deseralizing our class) should be equivalent.

I hope it helps!

Cheers,
D.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants