From f3b65b00a9824738fe784a5f4a60aa7722160193 Mon Sep 17 00:00:00 2001 From: LSauce Date: Fri, 27 Sep 2024 15:58:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=A1=E6=AD=A3=EF=BC=9A=E6=96=87=E5=AD=97?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20"=E4=B8=99"=20->=20"=E5=86=85"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/05-testing-with-spring.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/05-testing-with-spring.md b/docs/05-testing-with-spring.md index 199f416..05b2c1f 100644 --- a/docs/05-testing-with-spring.md +++ b/docs/05-testing-with-spring.md @@ -872,7 +872,7 @@ Test 库中非常实用的工具,在测试过程中用于操作、统计表中 **2. ReflectionTestUtils** 在测试中不可避免地要对私有属性、方法进行操作,这可以使用 PowerMock 等工具来完成,但是大部分情况下没有必要引入这么多库。其实 Spring -Test 库也丙置了一个工具,可通过反射简化此类操作。 +Test 库也内置了一个工具,可通过反射简化此类操作。 例如,给私有属性设置新的值: