List Info

Thread: Re: Regarding multiple inheritance and Unit testing in Ax 4.0




Re: Regarding multiple inheritance and Unit testing in Ax 4.0
country flaguser name
United States
2007-08-08 07:37:43

Hi Max,

Thanks for your kind response.

I would appreciate an example to use the option provide by you.

Regards,
Rahul Mohta

--- In development-axapta%40yahoogroups.com">development-axaptayahoogroups.com, "Max Belugin"
<mbelugin...> wrote:
&gt;
> refactor you runbasebatch class to be testable from another class
&gt; extending SysTestCase
>
>
> On 8/2/07, Rahul Mohta <rahulmohta_8...> wrote:
&gt; > Hi All,
>; >
>; > Need your opinion on the following query regarding multiple
> > inheritance and Unit testing in Ax 40.
> >
>; > According to my knowledge, Ax supports only single class to be
> > extended while there are cases when more than 1 class is required
to
&gt; > be extended.
> >
>; > Example: Unit Test class
&gt; > Extending Unit testing class (SysTestCase) to a custom class
&gt; > (Custom_Class_A) which is already extending class RunBaseBatch
> > In this case how to extend my
custom
> > class also to SysTestCase class?
&gt; >
>; > The following class declaration
gave
> > error to me as it is not
> > allowed:
> > Custom_Class_A extends
> > Runbasebatch,SysTestCase
> >
>; > In such case, how to do unit testing in Ax 4.0 as X++ supports
only
> > single class inheritance?
> >
>; > Looking forward for your kind responses to handle such a
situations?
> >
>; >
>; > Regards,
> > Rahul Mohta
&gt; >
>; >
>; >
>; >
>; >
>; > Yahoo! Groups Links
&gt; >
>; >
>; >
>; >
>;
>
> --
> Max Belugin, http://belugin.info , ICQ:9406811
>

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )