Re: [appfuse-user] can only set expectations on mock objects

2008-08-27 Thread angela leo
Ya..I included that in PersonManagerImplTest.The the test code for PersonManagerImplTest is given below package org.appfuse.tutorial.service.impl; /** * Created by IntelliJ IDEA. */ import java.util.ArrayList; import java.util.List; import org.appfuse.tutorial.dao.PersonDao; import org.appfu

Re: [appfuse-user] can only set expectations on mock objects

2008-08-27 Thread Matt Raible
You might want to try checking out the completed tutorials code to see if that works for you. svn checkout http://appfuse-demos.googlecode.com/svn/trunk/tutorial-service Matt On Wed, Aug 27, 2008 at 12:12 AM, angela leo <[EMAIL PROTECTED]> wrote: > > > Ya..I included that in PersonManagerImplTe

[appfuse-user] appfuse 2.x: java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based!

2008-08-27 Thread Miguel Romero
hi appfusers, in appfuse 2.x, i have a problem executing, the follow sentence java: [code] return getHibernateTemplate().findByNamedQuery("myquery",queryParams); [/code] throws the next exception: java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based! if i change the c

Re: [appfuse-user] appfuse 2.x: java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based!

2008-08-27 Thread Kan Sun
Hi Miguel I just encountered exactly the same problem yesterday. I notice that in your code there is a line *return getHibernateTemplate().findByNamedQuery("myquery",queryParams);* I think you should alternatively use a counterpart of the findByNamedQuery e.g. *getHibernateTemplate().findByName

Re: [appfuse-user] appfuse 2.x: java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-based!

2008-08-27 Thread Miguel Romero
i have used the appfuse wrapper method "findByNamedQuery" because it use findByNamedQueryAndNamedParam and it works perfectly: public List findByNamedQuery( String queryName, Map queryParams) { String []params = new String[queryParams.size()]; Object []values = new O

Re: [appfuse-user] Action Tests suddnly failing with InitializationError0

2008-08-27 Thread Martin Homik
Same error message (with managers), different cause. I simply forgot to declare my test method as "public". Martin -- View this message in context: http://www.nabble.com/Action-Tests-suddnly-failing-with-InitializationError0-tp12853062s2369p19179899.html Sent from the AppFuse - User mailing lis

Re: [appfuse-user] Appfuse and GWT

2008-08-27 Thread Michael Duergner
I already tried both they seem to work pretty good although I think there is some work to do for a full integration when looking at the model layer. On Wed, Aug 27, 2008 at 5:18 AM, Sanjiv Jivan <[EMAIL PROTECTED]>wrote: > I'd recommend using GWT-Server Library (GWT-SL) for Spring integration. It

Re: [appfuse-user] Appfuse and GWT

2008-08-27 Thread Vincenzo Caselli
How about this http://code.google.com/p/shine-reference/wiki/GettingStarted2 ? Of course I would stay with GWT 1.5 (=Java5 compatible) in order to keep the model annotated classes on the client GWT side. What do you think? The link above seems close to our goal. Some hint on where to start with a

[appfuse-user] generate schema (hbm2ddl) does not work

2008-08-27 Thread jned
I have been following the following directions and I haven't been able to get it to work. http://appfuse.org/display/APF/Persistence Here's my Person.java- package com.joeco.app.model; import javax.persistence.Entity; import javax.persistence.GenerationType; import javax.persistence.Id; import

Re: [appfuse-user] generate schema (hbm2ddl) does not work

2008-08-27 Thread Mohammad Irfan
Hi, I think you put the class name package wrongly, you should put: com.joeco.app.model.Person on . Change it to: . On Thu, Aug 28, 2008 at 9:27 AM, jned <[EMAIL PROTECTED]> wrote: > > I have been following the following directions and I haven't been able to get > it to work. > > http://appfuse.

[appfuse-user] Help!!! Testing if message is received in the newsletter and question.

2008-08-27 Thread Carlos Ortiz
For the one hand. Well, I wonder if message is received. Another hand. I need to know if in Eclipse Web Tools and using a Tomcat Server, I can create a Datasource and a Jndi resource?? Is this possible?

Re: [appfuse-user] can only set expectations on mock objects

2008-08-27 Thread angela leo
yes my test class have this setup method. package org.appfuse.tutorial.service.impl; import java.util.ArrayList; import java.util.List; import org.appfuse.tutorial.dao.PersonDao; import org.appfuse.tutorial.model.Person; import org.appfuse.service.impl.BaseManagerMockTestCase; import org.jmock.