Skip to content

triffer/java-spring-db-init-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Database test data initialisation sample

This repository contains simple examples of how to initialize test data in a database with the Spring Boot @SQL annotation or DbUnit.

SQL annotation

The Spring Boot @Sql annotation provides a simple way to run SQL scripts for tests.

DbUnit

Using DbUnit we can add classes that provide a fluent API to create new database objects. In this example there is already a database.dtd, but you could also write a test component that can generate this file from an existing database.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages