Commit cef7e11e authored by liaozan's avatar liaozan 🏀

Add spring-boot-starter-test

parent 79fe774b
...@@ -135,6 +135,18 @@ ...@@ -135,6 +135,18 @@
<include>**/*.*</include> <include>**/*.*</include>
</includes> </includes>
</fileSet> </fileSet>
<fileSet filtered="true" encoding="UTF-8" packaged="true">
<directory>src/test/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8" packaged="false">
<directory>src/test/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</fileSet>
<fileSet filtered="true" encoding="UTF-8"> <fileSet filtered="true" encoding="UTF-8">
<directory/> <directory/>
<includes> <includes>
......
...@@ -30,6 +30,11 @@ ...@@ -30,6 +30,11 @@
<groupId>com.schbrain.framework</groupId> <groupId>com.schbrain.framework</groupId>
<artifactId>logger-spring-boot-starter</artifactId> <artifactId>logger-spring-boot-starter</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
......
package ${package};
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@Slf4j
@SpringBootTest
public class ApplicationTest {
@BeforeEach
void init() {
}
@Test
void applicationTest() {
// write your testcase here
log.info("application started");
}
}
\ No newline at end of file
spring:
application:
name: ${rootArtifactId}
profiles:
active: dev
apollo:
bootstrap:
namespaces: application,jdbc-common,redis-common
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment