Hi Julien,

You are right. I manage to do it. Using an specific web.xml for running
jetty with a test spring application context, in order to connect to a
distinct database and specific setups for that purpose.

But now I have a complete different question.
When I am doing something like assertTextInTable("country", "España"); the
test fails because of the special character ñ .  I would say that this is
somehow related to the enconding or not ? If is that case how can I set the
enconding to support UTF-8 ? Because all the other cases withouth special
characters don't fail the test.

Thanks in advance,

Diogo

2009/1/14 Julien HENRY <henr...@yahoo.fr>

> Hi Diogo,
>
> If you manage to run your JUnit tests on a testing DB you should be able to
> do the same to run your JWebUnit tests on the same DB. JWebUnit is a layer
> on top of JUnit, so I don't understand why you can't use the same mecanism?
> Is there something I didn't understand in your question?
>
> Regards,
>
> Julien
>
>
>
> ------------------------------
> *De :* Diogo Henriques <diogo.henriq...@toprural.com>
> *À :* jwebunit-users@lists.sourceforge.net
> *Envoyé le :* Mercredi, 14 Janvier 2009, 11h37mn 54s
> *Objet :* [JWebUnit-users] How to create an testing environment with
> Jwebunit
>
> Hi,
>
> I've been exploring and creating some test cases in order to see the
> possibilities and benefits of this framework to integration tests. I've it
> already integrated with maven and jetty to run the tests before generate the
> war in a continuos integration environment, and so far everything is going
> fine and it must be said that jwebunit team is doing a good work :))
>
> Although I coudn't , so far, create a database testing environment to run
> the tests.  For example, in my project we have a development, production,
> testing database. When running the data unit tests, data layer, JUnit uses a
> testing environment (spring application context defined for testing, and xml
> file with the data testing to be inserted before running the tests). So I
> would like to use the same logic with jwebunit ... Run the tests under a
> test environment ... is there any solution or a best practices to do it ? I
> am using jwebunit 2.1, Stripes, Spring and Jetty
>
> thanks in advance,
>
> Diogo Henriques
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> JWebUnit-users mailing list
> JWebUnit-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to