From ae32b6654d398a064318ee7993cb38b35e167d8d Mon Sep 17 00:00:00 2001 From: AlexBob Date: Fri, 11 Oct 2024 10:19:23 +0800 Subject: [PATCH] feat(platform): Add OutputCaptureExtension to BootApplicationTest for capturing output during tests --- .../src/test/java/com/plate/boot/BootApplicationTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/boot/platform/src/test/java/com/plate/boot/BootApplicationTest.java b/boot/platform/src/test/java/com/plate/boot/BootApplicationTest.java index 26cb0f5b..59164366 100644 --- a/boot/platform/src/test/java/com/plate/boot/BootApplicationTest.java +++ b/boot/platform/src/test/java/com/plate/boot/BootApplicationTest.java @@ -1,6 +1,8 @@ package com.plate.boot; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.springframework.boot.test.system.OutputCaptureExtension; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; @@ -13,6 +15,7 @@ /** * @author Alex Bob */ +@ExtendWith(OutputCaptureExtension.class) class BootApplicationTest { @Test