Skip to content

Commit 45373e5

Browse files
committed
style(test): translate Chinese comments to English
Refactor comments in LoggerProcessUnitFactoryTest.java as a follow-up to the JUnit 5 migration work. This ensures all comments follow the project's English documentation standards.
1 parent 85d280e commit 45373e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

trpc-logger/trpc-logger-admin/src/test/java/com/tencent/trpc/logger/admin/LoggerProcessUnitFactoryTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public void tearDown() throws Exception {
2626
}
2727

2828
/**
29-
* 通过反射重置 LoggerProcessUnitFactory 的静态变量
29+
* Reset static variable of LoggerProcessUnitFactory via reflection
3030
*/
3131
private void resetLoggerProcessUnit() throws Exception {
3232
Field field = LoggerProcessUnitFactory.class.getDeclaredField("loggerProcessUnit");
@@ -38,7 +38,7 @@ private void resetLoggerProcessUnit() throws Exception {
3838
public void testGetGetLoggerProcessUnit() {
3939
try (MockedStatic<LoggerFactory> mockedLoggerFactory = Mockito.mockStatic(LoggerFactory.class);
4040
MockedStatic<LoggerFactoryEnum> mockedEnum = Mockito.mockStatic(LoggerFactoryEnum.class)) {
41-
// 模拟 LoggerFactoryEnum.getLoggerFactoryEnum 返回 LOG4J2_FACTORY
41+
// Mock LoggerFactoryEnum.getLoggerFactoryEnum to return LOG4J2_FACTORY
4242
mockedLoggerFactory.when(LoggerFactory::getILoggerFactory).thenReturn(new NOPLoggerFactory());
4343
mockedEnum.when(() -> LoggerFactoryEnum.getLoggerFactoryEnum(Mockito.anyString()))
4444
.thenReturn(LoggerFactoryEnum.LOG4J2_FACTORY);

0 commit comments

Comments
 (0)