1and1 / ioc-unit

A toolbox to create tests for deployments using jpa, resteasy, ejb, jta, jms, validation,...
Apache License 2.0
11 stars 9 forks source link

TransactionAttribute is not evaluated when its on a non ejb super-class #2

Closed ckotyrba closed 6 years ago

ckotyrba commented 6 years ago

Scenario:

@TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)
class NonEjbSuper {
  public void doSomeDbChanges(){
    //...
  }
}

@Stateless
class EjbChild extends Super {

}

The TransactionalInterceptor only checks if the declaring class of the method is an EJB. When I instantiate EjbChild class, the method doSomeDbChanges doesn't have transaction although it should. The same scenario works in arquillian

aschoerk commented 6 years ago

Solved by release 1.1.6