harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy, Jing Lv" <firep...@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 08:35:19 GMT
Stepan Mishura wrote:
<snip>
>> BufferOverflowException());
>> >
>> >
>> > But then you have to move generated file to the appropriate place by
>> hands.
>> > Is this convenient?
>> >
>>
>> Hi Stepan,
>>
>>     IMO, most ser file should be put into a certain directory, so the
>> the appropriate directory is always there.
>>
>>     I'd like to add a new method to the framework as:
>>
>> public static void createGoldenFile(TestCase test,Object object)
>> throws  IOException {
>>     createGoldenFile("src/test/resources/serialization",test,object);
>> }
> 
> 
> But if 'root' param is relative path them the generated file is placed in
> 'bin' (i.e. <module_root>/bin/test).  folder. Am I right? So you have to
> move it by hands anyway to <module_root>/src/test/resources/serialization
> folder.
> 

Ah sorry, I only test it on eclipse. Yes, if run on ant, it would 
properly be "<module_root>/bin/test".

IMO, mostly, people write code and create file once (for me, on 
eclipse), so it is still a convenience if the framework offer such method.

And for people who use ant to run test, still can offer a method  for 
that, e.g.
public static void createGoldenFileUsingAnt(TestCase test,Object object)
    throws  IOException {
  createGoldenFile("../../src/test/resources/serialization",test,object);
}

Am I right? Thanks! :)

> Thanks,
> Stepan.
> 
>    I have tried the new method, and it works well :)
>>     Can I or would you please make a patch for it? Thanks! :)
>>
<snip>
> 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
> 


-- 

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


Mime
View raw message