Hi Carlos, Yep. This was a fun one to debug. If I stepped through the code it worked properly. But, at runtime there was different behavior. I ended up using old school print statements to figure out the runtime behavior. :-) I'm glad to hear we ended up with the same solution. -Jeremy On Tue, May 18, 2010 at 4:09 PM, Carlos Vara (JIRA) < [email protected]> wrote:
> > [ > https://issues.apache.org/jira/browse/BVAL-48?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868830#action_12868830] > > Carlos Vara commented on BVAL-48: > --------------------------------- > > Hi Jeremy, > > nice catch there. I ran across the same problem these last days. I included > the same patch as part of BVAL-47, which also fixed it for me. > > Pretty funny to debug tho, as in my env the groups attribute was always > evaluated first when debugging and last when running... > > > jUnit failure during build on Windows - trunk rev 945800 > > -------------------------------------------------------- > > > > Key: BVAL-48 > > URL: https://issues.apache.org/jira/browse/BVAL-48 > > Project: BeanValidation > > Issue Type: Bug > > Components: jsr303 > > Environment: Windows XP, Sun JDK 1.6 SR16, Maven 2.2.0 > > Reporter: Jeremy Bauer > > Assignee: Jeremy Bauer > > Fix For: 0.1-incubating > > > > > > I am unable to build trunk on Windows due to a failing jUnit test. Here > is the relevant part of the failure: > > Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec > <<< FAILURE! > > > testMandatoryAttributesPresentInConstraintDescriptor(org.apache.bval.jsr303.BeanDescriptorTest) > Time elapsed: 0 sec <<< FAILURE! > > junit.framework.AssertionFailedError: payload attribute not present > > at junit.framework.Assert.fail(Assert.java:47) > > at junit.framework.Assert.assertTrue(Assert.java:20) > > at > org.apache.bval.jsr303.BeanDescriptorTest.testMandatoryAttributesPres > > entInConstraintDescriptor(BeanDescriptorTest.java:69) > > <snip> > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > >
