The NoSuchMethodError is likely caused by a dependency that shouldn't be
there. Try running "mvn dependency:tree" and see if you see different Spring
version numbers.

On Tue, Jun 23, 2009 at 12:28 PM, David Brown <dbr...@sexingtechnologies.com
> wrote:

> Hello Matt, thanks for the reply and sorry to waste your time. This is what
> happens when I use the IDE wizard to generate a class instead of handcoding.
> Doh! In an effort to widdle down the issue I have replicated the appfuse app
> as a wicket quickstart app. And, the only test I have is the
> xxxManagerTest.java. Now, I am getting the following testcase error
> exception. I suspect this is a dependency in the pom satisfied by the wrong
> jar. Meanwhile I will try Google and EE. Regards, David.
>
>
> ************************************************
> NoSuchMethodError: org.springframework.util.ObjectUtils.isEmpty
>
>
> ----- Original Message -----
> From: "Matt Raible" <m...@raibledesigns.com>
> To: users@appfuse.dev.java.net
> Sent: Tuesday, June 23, 2009 11:18:09 AM GMT -06:00 US/Canada Central
> Subject: Re: [appfuse-user] appfuse WebTestCase: UserWebTest (test) not
>  running under: mvn test
>
> Is xxxModel.java an interface? BaseObject is a class, so that might be the
> issue.
>
> Matt
>
> On Tue, Jun 23, 2009 at 8:41 AM, David Brown
> <dbr...@sexingtechnologies.com>wrote:
>
> > Hello Matt, thanks for the helpful and speedy reply. I have briefly read
> > the Spring Service interface doco and I applied the @Qualifier but no
> > change. Maybe unrelated but before I dive into the vast Spring doco I
> > thought I would briefly note that my model object corresponding to the
> > User.java model which extends BaseObject does not translate to a new
> model
> > object: xxxModel.java. When I try to extend a new model object:
> > xxxModel.java using BaseObject the compiler complains as follows. Both
> > classes are in the same package. Regards and please advises, David.
> >
> >
> > type BaseObject cannot be a superinterface of xxxModel; a superinterface
> > must be an interface
> >
> >
> >
> > ----- Original Message -----
> > From: "Matt Raible" <m...@raibledesigns.com>
> > To: users@appfuse.dev.java.net
> > Sent: Tuesday, June 23, 2009 8:37:28 AM GMT -06:00 US/Canada Central
> > Subject: Re: [appfuse-user] appfuse WebTestCase: UserWebTest (test) not
> >  running under: mvn test
> >
> > That is strange and I'm not sure why it's happening. You might look into
> > the
> > @Service annotation a bit more and see if a @Qualifier helps you.
> >
> > Matt
> >
> > On Mon, Jun 22, 2009 at 7:02 PM, David Brown
> > <dbr...@sexingtechnologies.com>wrote:
> >
> > > Hello Matt, thanks for the speedy and informative reply (and it
> worked).
> > > Now, I am back at just [testing]: I have 4 testcases that mirror and
> are
> > > parallel to the appfuse testcases: UserListTest, UserFormTest,
> > > UserManagerTest and UserManagerImplTest. The UserManagerImplTest is key
> > as
> > > my corrsponding xxxManagerImpl.java contains the annotation:
> > >
> > > @Service(value = "xxxManager")
> > >
> > >
> > > When I run the maven tests I get the surefire test with the following:
> > >
> > >
> > > Unsatisfied dependency expressed through bean property 'xxXManager'
> > >  <--- (one uppercase letter)
> > >
> > >
> > > And, of course the dependency is not satisfied because there is no such
> > > bean as: xxXManger only as defined in the xxxManagerImpl.java (as
> stated
> > > above) which is namely: xxxManager.
> > >
> > > If I edit xxxManagerImpl to reflect:
> > >
> > > @Service(value = "xxXManager") then the surefire tests (xxxFormTest and
> > > xxxListTest) will state:
> > >
> > > No bean named 'xxxManager' is defined
> > >
> > > How to debug this?
> > >
> > > Any help or suggestions appreciated. Regards, David.
> > >
> > >
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Matt Raible" <m...@raibledesigns.com>
> > > To: users@appfuse.dev.java.net
> > > Sent: Monday, June 22, 2009 2:59:05 PM GMT -06:00 US/Canada Central
> > > Subject: Re: [appfuse-user] appfuse WebTestCase: UserWebTest (test) not
> > >  running under: mvn test
> > >
> > > It runs in the integration-test phase, not the test phase.
> > >
> > > Matt
> > >
> > > On Sun, Jun 21, 2009 at 12:52 PM, David Brown <
> > > dbr...@sexingtechnologies.com
> > > > wrote:
> > >
> > > > Hello Matt and appfuser folks, I have an [ant new]
> > > > appfuser-wicket-spring-ibatis application in dev. All of the
> > > out-of-the-box
> > > > tests the extend: AbstractTransactionalDataSourceSpringContextTests
> are
> > > > running. But the UserWebTest test extends: WebTestCase but does not
> > show
> > > up
> > > > in the Console list of tests executed. Is there some missed config to
> > > turn
> > > > on testing for the web testing units? Previously, I have been able to
> > > simply
> > > > add a test unit to the web/pages directory and the test is executed.
> > None
> > > of
> > > > the web/ directory pages are executed. Please advise, David.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > > > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> > For additional commands, e-mail: users-h...@appfuse.dev.java.net
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to