From ddadc73578dc9087af41778f6594dc98bc53ed9f Mon Sep 17 00:00:00 2001 From: shimingxy Date: Fri, 30 Aug 2024 17:23:34 +0800 Subject: [PATCH] SurenessDefaultConfig --- ...aultSurenessConfig.java => SurenessDefaultConfig.java} | 8 ++++---- ...nessConfigTest.java => SurenessDefaultConfigTest.java} | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) rename core/src/main/java/org/dromara/sureness/{DefaultSurenessConfig.java => SurenessDefaultConfig.java} (97%) rename core/src/test/java/org/dromara/sureness/{DefaultSurenessConfigTest.java => SurenessDefaultConfigTest.java} (54%) diff --git a/core/src/main/java/org/dromara/sureness/DefaultSurenessConfig.java b/core/src/main/java/org/dromara/sureness/SurenessDefaultConfig.java similarity index 97% rename from core/src/main/java/org/dromara/sureness/DefaultSurenessConfig.java rename to core/src/main/java/org/dromara/sureness/SurenessDefaultConfig.java index fd2f47cf..7147cad0 100644 --- a/core/src/main/java/org/dromara/sureness/DefaultSurenessConfig.java +++ b/core/src/main/java/org/dromara/sureness/SurenessDefaultConfig.java @@ -29,20 +29,20 @@ * @author tomsun28 * @date 11:26 2019-05-26 */ -public class DefaultSurenessConfig { +public class SurenessDefaultConfig { - private static final Logger logger = LoggerFactory.getLogger(DefaultSurenessConfig.class); + private static final Logger logger = LoggerFactory.getLogger(SurenessDefaultConfig.class); public static final String SUPPORT_SERVLET = "servlet"; public static final String SUPPORT_JAKARTA_SERVLET = "jakarta-servlet"; public static final String SUPPORT_JAX_RS = "jax-rs"; public static final String SUPPORT_SPRING_REACTIVE = "spring-reactive"; - public DefaultSurenessConfig() { + public SurenessDefaultConfig() { this.init(SUPPORT_SERVLET); } - public DefaultSurenessConfig(String supportContainer) { + public SurenessDefaultConfig(String supportContainer) { this.init(supportContainer); } diff --git a/core/src/test/java/org/dromara/sureness/DefaultSurenessConfigTest.java b/core/src/test/java/org/dromara/sureness/SurenessDefaultConfigTest.java similarity index 54% rename from core/src/test/java/org/dromara/sureness/DefaultSurenessConfigTest.java rename to core/src/test/java/org/dromara/sureness/SurenessDefaultConfigTest.java index db751e8a..69e65847 100644 --- a/core/src/test/java/org/dromara/sureness/DefaultSurenessConfigTest.java +++ b/core/src/test/java/org/dromara/sureness/SurenessDefaultConfigTest.java @@ -5,19 +5,19 @@ import static org.junit.jupiter.api.Assertions.*; -import org.dromara.sureness.DefaultSurenessConfig; +import org.dromara.sureness.SurenessDefaultConfig; import org.dromara.sureness.provider.ducument.DocumentResourceAccess; /** * @author tomsun28 * @date 2021/1/17 11:02 */ -public class DefaultSurenessConfigTest { +public class SurenessDefaultConfigTest { @Test public void init() { DocumentResourceAccess.setYamlName("sureness-sample.yml"); - assertDoesNotThrow(() -> new DefaultSurenessConfig(DefaultSurenessConfig.SUPPORT_SERVLET)); - assertDoesNotThrow(() -> new DefaultSurenessConfig(DefaultSurenessConfig.SUPPORT_JAX_RS)); + assertDoesNotThrow(() -> new SurenessDefaultConfig(SurenessDefaultConfig.SUPPORT_SERVLET)); + assertDoesNotThrow(() -> new SurenessDefaultConfig(SurenessDefaultConfig.SUPPORT_JAX_RS)); } } \ No newline at end of file