spring-boot-unitils-starter

spring-boot-unitils-starter is a unitils-spring extension tool which provides support spring boot test base on unitils

License

License

Categories

Categories

Spring Boot Container Microservices
GroupId

GroupId

com.github.yangjianzhou
ArtifactId

ArtifactId

spring-boot-unitils-starter
Last Version

Last Version

1.3.0.RELEASE
Release Date

Release Date

Type

Type

jar
Description

Description

spring-boot-unitils-starter
spring-boot-unitils-starter is a unitils-spring extension tool which provides support spring boot test base on unitils
Project URL

Project URL

https://github.com/yangjianzhou/spring-boot-unitils
Source Code Management

Source Code Management

https://github.com/yangjianzhou/spring-boot-unitils

Download spring-boot-unitils-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.yangjianzhou/spring-boot-unitils-starter/ -->
<dependency>
    <groupId>com.github.yangjianzhou</groupId>
    <artifactId>spring-boot-unitils-starter</artifactId>
    <version>1.3.0.RELEASE</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.yangjianzhou/spring-boot-unitils-starter/
implementation 'com.github.yangjianzhou:spring-boot-unitils-starter:1.3.0.RELEASE'
// https://jarcasting.com/artifacts/com.github.yangjianzhou/spring-boot-unitils-starter/
implementation ("com.github.yangjianzhou:spring-boot-unitils-starter:1.3.0.RELEASE")
'com.github.yangjianzhou:spring-boot-unitils-starter:jar:1.3.0.RELEASE'
<dependency org="com.github.yangjianzhou" name="spring-boot-unitils-starter" rev="1.3.0.RELEASE">
  <artifact name="spring-boot-unitils-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.yangjianzhou', module='spring-boot-unitils-starter', version='1.3.0.RELEASE')
)
libraryDependencies += "com.github.yangjianzhou" % "spring-boot-unitils-starter" % "1.3.0.RELEASE"
[com.github.yangjianzhou/spring-boot-unitils-starter "1.3.0.RELEASE"]

Dependencies

compile (5)

Group / Artifact Type Version
org.unitils : unitils-dbunit jar 3.4.6
org.springframework.boot : spring-boot-autoconfigure Optional jar 2.0.3.RELEASE
junit : junit jar 4.12
org.unitils : unitils-spring jar 3.4.6
org.dbunit : dbunit jar 2.5.4

Project Modules

There are no modules declared in this project.

spring-boot-unitils

第一天:
利用unnitils.properties来添加配置,并且由用户来维护

第二天:
完全的spring boot配置,将一些固定的配置放在unitils.properties里面,并将其
打包到了spring-boot-unitils-starter的jar中,单元测试运行时自动去加载unitils.properties
这个文件,在unitils.properties指定了unitils.configuration.localFileName的值为
application-ut.properties,因此用户单元应用目录下需要有这个文件,这里面配置一些用户应用独特
的配置,例如数据库之类的

第三天 上传了1.1.0.RELEASE,修复了1.0.0.RELEASE中的datasource没使用unitils的bug,以及将spring相关的依赖限制为provided

Versions

Version
1.3.0.RELEASE
1.2.0.RELEASE
1.1.0.RELEASE
1.0.0.RELEASE