harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stepan Mishura" <stepan.mish...@gmail.com>
Subject Re: [classlib] Tests for serialization – which package, name?
Date Fri, 28 Apr 2006 06:24:24 GMT
On 4/28/06, Anton Avtamonov wrote:
>
> On 4/28/06, Stepan Mishura wrote:
> > On 4/27/06, Anton Avtamonov  wrote:
> <SNIP>
>
> Which approach is better is very personal :-). I would ay that the
> second one. It is more intention-revealing. Really, when you override
> testDeserialized() you don't see how and where it is used. With
> properly used delegation pattern the tests would be:


Anton, when you override setUp() and tearDown() methods you also don't see
how and where they are used. Do you use them or copy/paste setUp/tearDown
code to every testing method?

Thanks,
Stepan.

testSelfSerialization() {
>    Object deserialized = SerializationTest.serializeDeserialize(original);
>    assertEquals(original, deserialized);
> }
>
> In case deserialization assertion for the particular object is not
> just assertEquals() it will be well-shown.
>
> Similarly to test against stored serialization form (golden file).
>
> Wishes,
> --
> Anton Avtamonov,
> Intel Middleware Products Division
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


--
Thanks,
Stepan Mishura
Intel Middleware Products Division

------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message