Sigh. I *thought* I was using 20020706, but it turns out I was actually
using the 1.3 release. I need to 'clean' more often...

It's working now.

--
Martin Cooper


> -----Original Message-----
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, July 07, 2002 3:02 PM
> To: Struts Developers List
> Subject: Re: Problems running JUnit unit tests
> 
> 
> Do you have a "hot off the presses" commons-beanutils.jar file?  There
> were some changes that Struts relies on since the last 
> official release.
> 
> Craig
> 
> 
> On Sun, 7 Jul 2002, Martin Cooper wrote:
> 
> > Date: Sun, 7 Jul 2002 13:28:47 -0700
> > From: Martin Cooper <[EMAIL PROTECTED]>
> > Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> > To: "'[EMAIL PROTECTED]'" 
> <[EMAIL PROTECTED]>
> > Subject: Problems running JUnit unit tests
> >
> > Being a good lad, I'm trying to run the unit tests before I 
> check in, but
> > they're not working for me. The ones that fail all seem to relate to
> > DynaActionForm and friends. Here's an example of what I'm getting:
> >
> >     [junit] Testcase: testBeanCreate took 0.17 sec
> >     [junit]         Caused an ERROR
> >     [junit] Cannot assign value of type 'java.lang.String' 
> to property
> > 'stringArray' of type '[Ljava.lang.String;'
> >     [junit] 
> org.apache.commons.beanutils.ConversionException: Cannot assign
> > value of type 'java.lang.String' to property 'stringArray' of type
> > '[Ljava.lang.String;'
> >     [junit]         at
> > org.apache.struts.action.DynaActionForm.set(DynaActionForm.java:364)
> >     [junit]         at
> > 
> org.apache.struts.action.DynaActionFormClass.newInstance(DynaA
> ctionFormClass
> > .java:234)
> >     [junit]         at
> > 
> org.apache.struts.action.TestDynaActionForm.setUp(TestDynaActi
> onForm.java:16
> > 5)
> >     [junit]         at 
> junit.framework.TestCase.runBare(TestCase.java:138)
> >     [junit]         at 
> junit.framework.TestResult$1.protect(TestResult.java:106)
> >     [junit]         at
> > junit.framework.TestResult.runProtected(TestResult.java:124)
> >     [junit]         at 
> junit.framework.TestResult.run(TestResult.java:109)
> >     [junit]         at 
> junit.framework.TestCase.run(TestCase.java:131)
> >     [junit]         at 
> junit.framework.TestSuite.runTest(TestSuite.java:173)
> >     [junit]         at 
> junit.framework.TestSuite.run(TestSuite.java:168)
> >     [junit]         at
> > 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.r
> un(JUnitTestRu
> > nner.java:231)
> >     [junit]         at
> > 
> org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.m
> ain(JUnitTestR
> > unner.java:409)
> >
> > I have the 20020706 nightly BeanUtils (but I've tried with 
> the release
> > version as well).
> >
> > Any ideas on what I don't have, or don't have the right version of?
> >
> > Thanks!
> >
> > --
> > Martin Cooper
> >
> >
> > --
> > To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to