Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix failing test after Weld 2.4.1.Final upgrade
Weld 2.4.1.Final behaves somewhat different and is initializing the beans during discovery. That leads to a call CustomTaskPersistenceContextManager#beginCommandScopedEntityManager which throws the exception. The bean is thus not initialized and the CDI container is not able to inject some members (as they were not initialized and thus are not available for injection). Using the CommandBasedTaskService mock should lead to a same result - we do assert that the custom bean is being injected as the execute() methods throws exception.
- Loading branch information
Showing
3 changed files
with
26 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters