[appfuse-user] Dao Test Help.

2009-10-19 Thread Nelson Biasura
Hello, I'm trying to check the size of the return list in one of my method in DAO. But it always return 0; When executing "mvn test -Dtest=NameDaoTest" does it create and populate new data in my database? I noticed that all my data in database is gone. I guest it automatically call the "mvn hib

Re: [appfuse-user] Dao Test Help.

2009-10-19 Thread Matt Raible
The tests rollback any transactions that modified data when you're in the database. However, if you're only doing a get, it should work fine. Does your sample-data.xml populate the database with 142,882 countries? Matt On Mon, Oct 19, 2009 at 2:07 AM, Nelson Biasura wrote: > > Hello, I'm trying

Re: [appfuse-user] AppFuse project status?

2009-10-19 Thread Gary White
Thanks Matt. I have heard of this thing called a "personal life" and I too hope to experience it one day. mraible wrote: > > The reason that AppFuse developer has stalled is mainly because I > haven't had (or made) the time to work on it. I often have it on my > "todo" list, but it drops to th

[appfuse-user] NullPointerException LocaleFilter after deploy

2009-10-19 Thread Arthur Erdös
Hello all! I have a strange error, I can't figure out the cause. Perhaps someone has had the same problem once... When I run my application with jetty (using mvn jetty:run-war) everything works fine. When I deploy the war to Tomcat (5.5) I get a NullPointerException in LocaleFilter in the line "c

Re: [appfuse-user] NullPointerException LocaleFilter after deploy

2009-10-19 Thread Matt Raible
I've never seen this before. I would try remote debugging and see if that helps. Matt On Mon, Oct 19, 2009 at 2:25 PM, Arthur Erdös wrote: > Hello all! > > I have a strange error, I can't figure out the cause. Perhaps someone > has had the same problem once... > > When I run my application with

Re: [appfuse-user] Dao Test Help.

2009-10-19 Thread Nelson Biasura
No, i don't use sample-data.xml to populate it. I populated my database using sql file that i created from mysqldump. What do you mean "if you're only doing a get, it should work fine"?.. Thanks a lot Matt. Matt Raible wrote: The tests rollback any transactions that modified data when you're

Re: [appfuse-user] Dao Test Help.

2009-10-19 Thread Matt Raible
By default, DbUnit does a CLEAN_INSERT, which means it wipes out your data and populates your database with what's in sample-data.xml. If you want to change this, modify the following property: CLEAN_INSERT Options are as follows: http://mojo.codehaus.org/dbunit-maven-plugin/operation-mojo.html#