Skip to content

Class-level @Transactional is ignored if method has @ShouldMatchDataSet #123

@rdicroce

Description

@rdicroce
Issue Overview

In arquillian.xml, I have the default transaction mode set to DISABLED. In a test class, I put @Transactional(TransactionMode.COMMIT) at the class level. I put @ShouldMatchDataSet on one method within that class, without defining @Transactional at the method level.

Expected Behaviour

The method should inherit the class level setting.

Current Behaviour

The method inherts the default setting from arquillian.xml.

Additional Information

The method correctly inherits the class level setting if @ShouldMatchDataSet is removed. Specifying @Transactional(TransactionMode.COMMIT) on the method level works correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions