I suspect it may be super.objectToRequestParameters(pacientes,
request). Do you have a ApplicationResources_sv.properties? If not,
you may want to try creating one and specifying your date.format in
it.

If that doesn't work, maybe it's possible to force an English locale
when testing?

Matt


On 9/17/07, hkadejo <[EMAIL PROTECTED]> wrote:
>
> my Locale is _SV (El salvador), my OS is Windows Xp.....
>
> -------------------------------------------------------------------------------
> Test set: org.cac.webapp.controller.PacientesFormControllerTest
> -------------------------------------------------------------------------------
> Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.078 sec
> <<< FAILURE!
> testSave(org.cac.webapp.controller.PacientesFormControllerTest)  Time
> elapsed: 0.015 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: null
>         at junit.framework.Assert.fail(Assert.java:47)
>         at junit.framework.Assert.assertTrue(Assert.java:20)
>         at junit.framework.Assert.assertNull(Assert.java:227)
>         at junit.framework.Assert.assertNull(Assert.java:220)
>         at
> org.cac.webapp.controller.PacientesFormControllerTest.testSave(PacientesFormControllerTest.java:54)
>
>
> and
>
>
> public void testSave() throws Exception {
>         MockHttpServletRequest request = newGet("/pacientesform.html");
>         request.addParameter("id", "1");
>
>         ModelAndView mv = form.handleRequest(request, new
> MockHttpServletResponse());
>
>         Pacientes pacientes = (Pacientes)
> mv.getModel().get(form.getCommandName());
>         assertNotNull(pacientes);
>
>         request = newPost("/pacientesform.html");
>
>         // update required fields
>         pacientes.setNombre("QkEuNvSlTk");
>         pacientes.setApellidos("OiXbQkQuGm");
>         pacientes.setSexo("M");
>         pacientes.setEdad(Long.valueOf("20"));
>         pacientes.setFecnacimiento(new java.util.Date());
>         pacientes.setCategoria("QzZqSmGoCn");
>         pacientes.setPassword("VuQwWjJbRb");
>
>         super.objectToRequestParameters(pacientes, request);
>
>         mv = form.handleRequest(request, new MockHttpServletResponse());
>
>         Errors errors = (Errors)
> mv.getModel().get(BindException.MODEL_KEY_PREFIX + "pacientes");
>         assertNull(errors);
>         assertNotNull(request.getSession().getAttribute("successMessages"));
>     }
>
>
>
>
> mraible wrote:
> >
> > I'm willing to bet the problem is the dates that are entered into
> > sample-data.xml or into your tests. Does "mvn dbunit:operation" run
> > successfully? If so, it's likely your test. Can you run "mvn test" and
> > copy/paste the stack trace so we can see where it's failing. What
> > locale is your OS?
> >
> > Matt
> >
> > On 9/17/07, hkadejo <[EMAIL PROTECTED]> wrote:
> >>
> >> Generate my model with appfuse: gen-model of a table with a field
> >> Datetime
> >> type….and later it generates the CRUD with appfuse: gen….but at the time
> >> of
> >> inserting data I have this exception….
> >>
> >> Failed to convert property estimates of type [java.lang. Java.util
> >> String]
> >> to required type [. Property dates] for fecnacimiento; nested exception
> >> is
> >> java.lang.IllegalArgumentException: Even Could not dates: Unparseable
> >> dates:
> >> "09/17/2007"
> >>
> >> the problem is?
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Problem-field-Datetime-tf4468191s2369.html#a12740173
> >> Sent from the AppFuse - User mailing list archive at Nabble.com.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > --
> > http://raibledesigns.com
> >
> >
>
> --
> View this message in context: 
> http://www.nabble.com/Problem-field-Datetime-tf4468191s2369.html#a12741138
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
http://raibledesigns.com

Reply via email to