Repository: micronaut-projects/micronaut-test
Pull request #812 (2023-07-06 06:04:30)

Test to RC5

sdelamo: This fails with: 

```
test-junit5/src/test/java/io/micronaut/test/junit5/TransactionalTest.java:5: error: cannot find symbol
import io.micronaut.transaction.support.TransactionSynchronizationManager;
                                       ^
  symbol:   class TransactionSynchronizationManager
  location: package io.micronaut.transaction.support
 ```
sonarcloud[bot]: Kudos, SonarCloud Quality Gate passed!&nbsp; &nbsp; [![Quality Gate passed](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/QualityGateBadge/passed-16px.png 'Quality Gate passed')](https://sonarcloud.io/dashboard?id=micronaut-projects_micronaut-test&pullRequest=812)

[![Bug](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/bug-16px.png 'Bug')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=BUG) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=BUG) [0 Bugs](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=BUG)  
[![Vulnerability](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/vulnerability-16px.png 'Vulnerability')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=VULNERABILITY) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=VULNERABILITY) [0 Vulnerabilities](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=VULNERABILITY)  
[![Security Hotspot](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/security_hotspot-16px.png 'Security Hotspot')](https://sonarcloud.io/project/security_hotspots?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=SECURITY_HOTSPOT) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/security_hotspots?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=SECURITY_HOTSPOT) [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=SECURITY_HOTSPOT)  
[![Code Smell](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/common/code_smell-16px.png 'Code Smell')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=CODE_SMELL) [![A](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/RatingBadge/A-16px.png 'A')](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=CODE_SMELL) [0 Code Smells](https://sonarcloud.io/project/issues?id=micronaut-projects_micronaut-test&pullRequest=812&resolved=false&types=CODE_SMELL)

[![No Coverage information](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/CoverageChart/NoCoverageInfo-16px.png 'No Coverage information')](https://sonarcloud.io/component_measures?id=micronaut-projects_micronaut-test&pullRequest=812&metric=coverage&view=list) No Coverage information  
[![0.0%](https://sonarsource.github.io/sonarcloud-github-static-resources/v2/checks/Duplications/3-16px.png '0.0%')](https://sonarcloud.io/component_measures?id=micronaut-projects_micronaut-test&pullRequest=812&metric=new_duplicated_lines_density&view=list) [0.0% Duplication](https://sonarcloud.io/component_measures?id=micronaut-projects_micronaut-test&pullRequest=812&metric=new_duplicated_lines_density&view=list)



Patch:
diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml
index b43a9648..c8490c89 100644
--- a/gradle/libs.versions.toml
+++ b/gradle/libs.versions.toml
@@ -1,6 +1,6 @@
 [versions]
 micronaut-docs = "2.0.0"
-micronaut = "4.0.0-RC4"
+micronaut = "4.0.0-RC5"
 
 groovy = "4.0.11"
 


Test patch:
diff --git a/test-junit5/src/test/java/io/micronaut/test/junit5/TransactionalTest.java b/test-junit5/src/test/java/io/micronaut/test/junit5/TransactionalTest.java
index 193761ef..21d26858 100644
--- a/test-junit5/src/test/java/io/micronaut/test/junit5/TransactionalTest.java
+++ b/test-junit5/src/test/java/io/micronaut/test/junit5/TransactionalTest.java
@@ -2,7 +2,7 @@ package io.micronaut.test.junit5;
 
 import io.micronaut.context.ApplicationContext;
 import io.micronaut.test.extensions.junit5.annotation.MicronautTest;
-import io.micronaut.transaction.support.TransactionSynchronizationManager;
+import io.micronaut.transaction.TransactionOperations;
 import io.micronaut.transaction.test.DefaultTestTransactionExecutionListener;
 import jakarta.inject.Inject;
 import org.junit.jupiter.api.AfterEach;
@@ -17,14 +17,17 @@ class TransactionalTest {
   @Inject
   ApplicationContext applicationContext;
 
+  @Inject
+  TransactionOperations<?> transactionOperations;
+
   @BeforeEach
   void setup() {
-    Assertions.assertTrue(TransactionSynchronizationManager.isSynchronizationActive());
+    Assertions.assertTrue(transactionOperations.findTransactionStatus().isPresent());
   }
 
   @AfterEach
   void cleanup() {
-    Assertions.assertTrue(TransactionSynchronizationManager.isSynchronizationActive());
+      Assertions.assertTrue(transactionOperations.findTransactionStatus().isPresent());
   }
 
   @Test