Skip to content

Commit 81dcefd

Browse files
committed
Use LoggingLevelsTest instead of SpringLoggingTest
Replace class-level @SpringLoggingTest with the more granular @LoggingLevelsTest. Updated import to io.microsphere.logging.test.jupiter.LoggingLevelsTest, removed the @SpringLoggingTest annotation on the class, and added @LoggingLevelsTest(levels = "ERROR") to the testAttachMetadata method to scope logging level for that test.
1 parent e4182f2 commit 81dcefd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

microsphere-spring-cloud-commons/src/test/java/io/microsphere/spring/cloud/client/service/util/ServiceInstanceUtilsTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
import io.microsphere.json.JSONObject;
22-
import io.microsphere.spring.test.junit.jupiter.SpringLoggingTest;
22+
import io.microsphere.logging.test.jupiter.LoggingLevelsTest;
2323
import io.microsphere.spring.web.metadata.WebEndpointMapping;
2424
import io.microsphere.spring.web.metadata.WebEndpointMapping.Builder;
2525
import org.junit.jupiter.api.BeforeEach;
@@ -62,7 +62,6 @@
6262
* @see ServiceInstanceUtils
6363
* @since 1.0.0
6464
*/
65-
@SpringLoggingTest
6665
public class ServiceInstanceUtilsTest {
6766

6867
private static final Integer WEB_ENDPOINT_MAPPING_ID = Integer.valueOf(12345);
@@ -84,6 +83,7 @@ void setUp() {
8483
}
8584

8685
@Test
86+
@LoggingLevelsTest(levels = "ERROR")
8787
void testAttachMetadata() {
8888
attachMetadata(this.context, this.serviceInstance, this.webEndpointMappings);
8989
assertEquals(this.context, getMetadata(this.serviceInstance, WEB_CONTEXT_PATH_METADATA_NAME));

0 commit comments

Comments
 (0)