[ https://issues.apache.org/jira/browse/UIMA-6478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17563159#comment-17563159 ]
Richard Eckart de Castilho commented on UIMA-6478: -------------------------------------------------- Ok, actually it work like this: {noformat} @RegisterExtension ManagedJCas managedJCas = new ManagedJCas(); {noformat} > ManagedCas test utility not usable > ---------------------------------- > > Key: UIMA-6478 > URL: https://issues.apache.org/jira/browse/UIMA-6478 > Project: UIMA > Issue Type: Bug > Components: uimaFIT > Reporter: Richard Eckart de Castilho > Assignee: Richard Eckart de Castilho > Priority: Major > Fix For: 3.4.0SDK > > > The ManagedCas and ManagedJCas classes had been rules for JUnit 4. While > porting to JUnit 5, there were turned into TestWatchers - but that currently > makes them hardly usable because watchers / extensions seem to be normally > instantiated by JUnit itself and then we have no access to the contained CAS. > Looks like these classes should rather work like {{@TempDir}} in JUnit 5. -- This message was sent by Atlassian Jira (v8.20.10#820010)