You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by ri...@accenture.com on 2005/11/21 11:09:25 UTC
please explain
hi
I am currently working on a project that is in production stage. I need to write some junit testcases for some of the enhancements that i have done to the project. but the testcases require the access of database. since i am not the writer of code , properties or xml file hence i am very confused as to how i write the test cases.
can you tell me a procedure to initialize a project from an application(testcase) so that connections to the database are made
with regards,
Rishi Mishra
This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited.
Re: please explain
Posted by Antonio Fiol BonnĂn <an...@gmail.com>.
You may also be interested in Cactus
(http://jakarta.apache.org/cactus/), if you want to execute the tests
inside a servlet container (that is, of course, if you are testing
[parts of] a web application).
--
Antonio
2005/11/21, m h <lb...@yahoo.com>:
> technically you are not writing a unit test, you are
> writing an integration test. Still there is not
> reason you cannot connect to the DB in the tests
> themselves, or connect and disconnect is
> setup/teardown methods. Look at the JUnit
> documentation.
>
> --- rishi.mishra@accenture.com wrote:
>
> > hi
> >
> > I am currently working on a project that is in
> > production stage. I need to write some junit
> > testcases for some of the enhancements that i have
> > done to the project. but the testcases require the
> > access of database. since i am not the writer of
> > code , properties or xml file hence i am very
> > confused as to how i write the test cases.
> > can you tell me a procedure to initialize a project
> > from an application(testcase) so that connections to
> > the database are made
> >
> > with regards,
> > Rishi Mishra
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: please explain
Posted by m h <lb...@yahoo.com>.
technically you are not writing a unit test, you are
writing an integration test. Still there is not
reason you cannot connect to the DB in the tests
themselves, or connect and disconnect is
setup/teardown methods. Look at the JUnit
documentation.
--- rishi.mishra@accenture.com wrote:
> hi
>
> I am currently working on a project that is in
> production stage. I need to write some junit
> testcases for some of the enhancements that i have
> done to the project. but the testcases require the
> access of database. since i am not the writer of
> code , properties or xml file hence i am very
> confused as to how i write the test cases.
> can you tell me a procedure to initialize a project
> from an application(testcase) so that connections to
> the database are made
>
> with regards,
> Rishi Mishra
>
>
>
> This message is for the designated recipient only
> and may contain privileged, proprietary, or
> otherwise private information. If you have received
> it in error, please notify the sender immediately
> and delete the original. Any other use of the email
> by you is prohibited.
>
> >
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
commons-user-help@jakarta.apache.org
__________________________________
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org