[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9380) IncrementalValidationTest.testAlternativesInBeansXml() failure

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Thu Jul 21 19:02:23 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615792#comment-12615792 ] 

Viacheslav Kabanovich commented on JBIDE-9380:
----------------------------------------------

We update inner model for a file only if its time stamp has changed. Linux rounds time stamp to integer seconds. When test quickly rewrites the file several times, fast processor handles all operations in less than one second, and with ample probability one of file modifications does not changes its time stamp.
Is not it a feature of stone age, updating time stamp only once in a second?
I have improved the method that checks if file should be reloaded in model.

> IncrementalValidationTest.testAlternativesInBeansXml() failure
> --------------------------------------------------------------
>
>                 Key: JBIDE-9380
>                 URL: https://issues.jboss.org/browse/JBIDE-9380
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdi (jsr-299)
>    Affects Versions: 3.3.0.M3
>            Reporter: Alexey Kazakov
>            Assignee: Viacheslav Kabanovich
>            Priority: Critical
>             Fix For: 3.3.0.M3
>
>
> {code}
> Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 14.995 sec <<< FAILURE!
> testAlternativesInBeansXml(org.jboss.tools.cdi.core.test.tck.validation.IncrementalValidationTest)  Time elapsed: 2.338 sec  <<< FAILURE!
> junit.framework.AssertionFailedError: Marker matches the 'No bean is eligible for injection to the injection point \[JSR-299 §5.2.1\]' pattern was found
> 	at junit.framework.Assert.fail(Assert.java:47)
> 	at junit.framework.Assert.assertTrue(Assert.java:20)
> 	at junit.framework.Assert.assertFalse(Assert.java:34)
> 	at org.jboss.tools.tests.AbstractResourceMarkerTest.assertMarkerIsNotCreated(AbstractResourceMarkerTest.java:238)
> 	at org.jboss.tools.tests.AbstractResourceMarkerTest.assertMarkerIsNotCreated(AbstractResourceMarkerTest.java:232)
> 	at org.jboss.tools.tests.AbstractResourceMarkerTest.assertMarkerIsNotCreated(AbstractResourceMarkerTest.java:393)
> 	at org.jboss.tools.cdi.core.test.tck.validation.IncrementalValidationTest.testAlternativesInBeansXml(IncrementalValidationTest.java:129)
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jbosstools-issues mailing list