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][support] Using new framework for testing serialization (was: Re: [jira] Updated: (HARMONY-1098) [classlib][instrument]Add tests for UnmodifiableClassException and IllegalClassFormatException)
Date Thu, 10 Aug 2006 02:38:58 GMT
On 8/8/06, Jimmy, Jing Lv wrote:
>
> Stepan Mishura wrote:
> > Hi Jimmy,
> >
> > I expect that we agreed to use new serialization framework for new
> tests.
> > But I see that people continue develop tests for serialization using the
> > old
> > framework (i.e. SerializationTester).
> >
> > Could you tell me why you prefer the old framework? Is the new framework
> > for
> > testing serialization complex, hard-to-use, bad documented or something
> > else?
> >
> > Thank you in advance for your feedback,
> > Stepan.
> >
>
> Hi Stepan,
>
>    Perhaps people are all lazy... (just kidding :P)
>    In fact, I've try the new framework already some days ago, I find
> two problems:
>    1. I find no method to make the ser file, as you know, in old
> framework, if no such file was found, it will create one at once, that
> was easy for us to put the file to the proper directory and run again,
> this time the test passes successfully. To me, write test once, run
> twice, only in two minutes I finish the testing, that was nice :)


Added createGoldenFile() method at r430213.

Thanks,
Stepan.

   2. Perhaps this is my mistake, I write a test[1], though I put ser
> file to the directory (e.g,
>
> src/tset/resource/serialization/org/apache/harmony/tests/java/lang/instrument),
> the new framework fails to load the file. I've debug into the code, find
> the path name correct, but the classloader load null(on eclipse 3.2,
> winxp). After that I thought the framework may be still on progress and
> not ready yet, so I give up and go on with the old one.
>
>    Please correct me if I misuse the new framework.
>
>    However I shall agree to use the new framework if no more problem
> exists. Indeed the new framework looks good to me :) And the effort to
> change test code is not heavy then.
>
> [1]
> public void test_compatibilitySerialization() throws Exception {
>         SerializationTest.verifyGolden(this, new
>                                        llegalClassFormatException());
>     }
>
> >
> > On 8/8/06, Jimmy, Jing Lv (JIRA) <jira@apache.org> wrote:
> >>
> >>     [ http://issues.apache.org/jira/browse/HARMONY-1098?page=all ]
> >>
> >> Jimmy, Jing Lv updated HARMONY-1098:
> >> ------------------------------------
> >>
> >>    Attachment: instrument_patch.zip
> >>
> >> Hi,
> >>
> >>    Would you please try my patch?
> >>    Please decompress to module\instrument, and run
> >> module\instrument\instrument_patch\filecp.sh
> >>
> >> Thanks!
> >>
> >> Best regards,
> >> Jimmy
> >>
> >> > [classlib][instrument]Add tests for UnmodifiableClassException and
> >> IllegalClassFormatException
> >> >
> >>
> ----------------------------------------------------------------------------------------------
> >>
> >> >
> >> >                 Key: HARMONY-1098
> >> >                 URL:
> http://issues.apache.org/jira/browse/HARMONY-1098
> >> >             Project: Harmony
> >> >          Issue Type: Improvement
> >> >          Components: Classlib
> >> >            Reporter: Jimmy, Jing Lv
> >> >         Attachments: instrument_patch.zip
> >> >
> >> >
> >> > Add serialization tests for UnmodifiableClassException and
> >> IllegalClassFormatException.
> >>
> >> --
> >> This message is automatically generated by JIRA.
> >> -
> >> If you think it was sent incorrectly contact one of the administrators:
> >> http://issues.apache.org/jira/secure/Administrators.jspa
> >> -
> >> For more information on JIRA, see:
> http://www.atlassian.com/software/jira
> >>
> >>
> >>
> >
> >
>
>
> --
>
> Best Regards!
>
> Jimmy, Jing Lv
> China Software Development Lab, IBM
>
> ---------------------------------------------------------------------
> 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