[jbossts-issues] [JBoss JIRA] (JBTM-1767) restat-api failures with emma: Tests run: 30, Failures: 11, Errors: 2
Michael Musgrove (JIRA)
jira-events at lists.jboss.org
Mon Jun 10 12:15:55 EDT 2013
[ https://issues.jboss.org/browse/JBTM-1767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780599#comment-12780599 ]
Michael Musgrove commented on JBTM-1767:
----------------------------------------
A number of the JAX-RS methods accept the annotated parameter @Context UriInfo info which is used to get the path name of the endpoint as in:
{noformat}
info.getAbsolutePath().toString()
{noformat}
when running under emma this call includes the URI query and fragment separators so URIs constructed in this manner end up with "?#" tacked onto the end of URIs
Using info.getBaseUri() + info.getPath() instead of toString() resolves all the test failures.
> restat-api failures with emma: Tests run: 30, Failures: 11, Errors: 2
> ---------------------------------------------------------------------
>
> Key: JBTM-1767
> URL: https://issues.jboss.org/browse/JBTM-1767
> Project: JBoss Transaction Manager
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: REST, Testing
> Reporter: Tom Jenkinson
> Assignee: Michael Musgrove
> Priority: Minor
> Fix For: 5.0.0.M4
>
>
> Failed tests: test1PCAbort(org.jboss.jbossts.star.test.CoordinatorTest): expected:<v[2]> but was:<v[1]>
> test2PC(org.jboss.jbossts.star.test.CoordinatorTest): expected:<v[2]> but was:<v[1]>
> testEnlistVolatileParticipant(org.jboss.jbossts.star.test.OptionalSpecTest): null expected:<[0]> but was:<[4]>
> testRecoveryURLTwoPhaseAwareWithoutNotification(org.jboss.jbossts.star.test.SpecTest): null expected:<Transaction[RolledBack]> but was:<Transaction[Active]>
> testRecoveryURLTwoPhaseAwareWithNotification(org.jboss.jbossts.star.test.SpecTest): null expected:<Transaction[Committed]> but was:<Transaction[Active]>
> testRecoveryURLTwoPhaseUnawareWithoutNotification(org.jboss.jbossts.star.test.SpecTest): null expected:<Transaction[RolledBack]> but was:<Transaction[Active]>
> testRecoveryURLTwoPhaseUnawareWithNotification(org.jboss.jbossts.star.test.SpecTest): null expected:<Transaction[Committed]> but was:<Transaction[Active]>
> testHeuristic(org.jboss.jbossts.star.test.SpecTest): null expected:<txstatus=Transaction[HeuristicMixed]> but was:<txstatus=Transaction[RolledBack]>
> testHeuristicWithForget(org.jboss.jbossts.star.test.SpecTest): null expected:<txstatus=Transaction[HeuristicRollb]ack> but was:<txstatus=Transaction[RolledB]ack>
> testSpec6(org.jboss.jbossts.star.test.SpecTest): null expected:<txstatus=Transaction[RolledBack]> but was:<txstatus=Transaction[Committed]>
> testCannotEnlistDuring2PC(org.jboss.jbossts.star.test.SpecTest): expected:<500> but was:<412>
> Tests in error:
> testTransactionStatistics(org.jboss.jbossts.star.test.OptionalSpecTest): org.jboss.jbossts.star.util.media.txstatusext.TransactionManagerElement cannot be cast to org.jboss.jbossts.star.util.media.txstatusext.TransactionStatisticsElement
> testParticipantStatus(org.jboss.jbossts.star.test.SpecTest): Unexpected status. Expected 200 got 404
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbossts-issues
mailing list