common test setup moved to adapters common module

This commit is contained in:
adamkulawik
2018-05-26 01:30:06 +02:00
parent 2aa827e79b
commit 680ef2a077
15 changed files with 22 additions and 56 deletions

View File

@@ -33,6 +33,16 @@
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.197</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>3.5.5</version>
</dependency>
</dependencies> </dependencies>
<properties> <properties>

View File

@@ -1,10 +1,18 @@
spring.main.banner-mode=off spring.main.banner-mode=off
spring.jpa.database=default spring.jpa.database=default
spring.jpa.generate-ddl=false spring.jpa.generate-ddl=false
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres #spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.datasource.username=postgres #spring.datasource.username=postgres
spring.datasource.password= #spring.datasource.password=
spring.datasource.driver-class-name=org.postgresql.Driver #spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=sa
spring.datasource.password=sa
spring.datasource.driver-class-name=org.h2.Driver
spring.liquibase.change-log=classpath:/schema/db.changelog.xml
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} %-5level %logger{36} - %msg%n
logging.level.org.hibernate.SQL=debug logging.level.org.hibernate.SQL=debug
logging.level.=error logging.level.=error

View File

@@ -1,27 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>factory</artifactId>
<groupId>pl.com.dddbyexamples</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>db-commons</artifactId>
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.4.197</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>3.5.5</version>
</dependency>
</dependencies>
</project>

View File

@@ -68,12 +68,6 @@
<version>1.7.9</version> <version>1.7.9</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency>
<groupId>pl.com.dddbyexamples</groupId>
<artifactId>db-commons</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>test</scope>
</dependency>
</dependencies> </dependencies>
<properties> <properties>

View File

@@ -1,6 +0,0 @@
spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=sa
spring.datasource.password=sa
spring.datasource.driver-class-name=org.h2.Driver
spring.liquibase.change-log=classpath:/schema/db.changelog.xml

View File

@@ -19,7 +19,6 @@
<module>shortages-prediction-adapters</module> <module>shortages-prediction-adapters</module>
<module>product-management-adapters</module> <module>product-management-adapters</module>
<module>production-planning-adapters</module> <module>production-planning-adapters</module>
<module>db-commons</module>
</modules> </modules>
</project> </project>

View File

@@ -1,6 +0,0 @@
spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=sa
spring.datasource.password=sa
spring.datasource.driver-class-name=org.h2.Driver
spring.liquibase.change-log=classpath:/schema/db.changelog.xml

View File

@@ -1,6 +0,0 @@
spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=sa
spring.datasource.password=sa
spring.datasource.driver-class-name=org.h2.Driver
spring.liquibase.change-log=classpath:/schema/db.changelog.xml