Commit 1472be38 authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Enriko Käsper

See merge request teis/payments-service!46
parents 469973b4 3af5e3d1
# payments-service
# Payments service
Payments service is a microservice which provides different payment managements (claims, enforcements, reconciliations) for TeIS application users.
## Features
Payments service is a Spring Boot application providing the following functionality:
* payments management
* claims management
* reconciliations management
* enforcements management
## Requirements
* [OpenJDK 11](https://openjdk.java.net/projects/jdk/11/)
* [Rabbit MQ](https://www.rabbitmq.com/)
* [PostgreSQL](https://www.postgresql.org/)
See [how to run required dependencies](../../docs/blob/master/run-requirements.md).
Payments service depends on other TeIS libraries:
* [TeIS Gradle plugin](../../teis-gradle-plugin)
* [TeIS public commons libraries](../../commons-public)
* [TeIS commons libraries](../../commons)
* [TeIS common API gateway library](../../common-api-gateway)
* [TeIS office API gateway library](../../office-api-gateway)
## Run application
Spring Boot project can be run directly from [PaymentsServiceApp.main()](service/src/main/java/ee/sm/ti/teis/PaymentsServiceApp.java)
method or via executable jar file. More info on running Spring applications:
[running your application.](https://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-running-your-application.html)
Visit [how to run application](../../docs/blob/master/run-application.md).
## Build and configure
Visit [how to build](../../docs/blob/master/build-configure.md) for more info.
## Default profiles
Visit [environment profiles](../../docs/blob/master/default-profiles.md) for more info.
## Tests
Run [integration](service/src/integTest) and [unit tests](service/src/test) via IDE or with Gradle in command line:
```jshelllanguage
./gradlew test
```
\ No newline at end of file
theGroup=ee.sm.ti.teis
theVersion=1.8.0
theVersion=1.9.0
pluginVersion=1.1.1
commonsVersion=1.10.0
officeApiGatewayVersion=1.8.0
......
......@@ -18,9 +18,9 @@ import org.testcontainers.junit.jupiter.Testcontainers;
@ContextConfiguration(initializers = {PaymentsAppTestBase.Initializer.class})
public abstract class PaymentsAppTestBase {
private static GenericContainer rabbitMQContainer;
private static final GenericContainer rabbitMQContainer;
// to speed up tests, lets use static container, it is used in alla test classes that are executed inside one Spring Context
// to speed up tests, lets use static container, it is used in all test classes that are executed inside one Spring Context
static {
rabbitMQContainer = new GenericContainer("rabbitmq:latest").withExposedPorts(5672);
rabbitMQContainer.start();
......
Supports Markdown
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