/
cat_dimson
/
telegram_integration
Обзор
Документация
Войти
/
cat_dimson
/
telegram_integration
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/test/java/com/integrationmessagers/telegram/TestcontainersConfiguration.java
18 строк
594 B
Котик Дмитрий Степанович
init project. Каркас для работы с telegram
28 июн 2024, 11:35
28 июн 2024, 11:35
197f49c
Код
Авторство
О чём код?
package com.integrationmessagers.telegram; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.boot.testcontainers.service.connection.ServiceConnection; import org.springframework.context.annotation.Bean; import org.testcontainers.containers.PostgreSQLContainer; import org.testcontainers.utility.DockerImageName; @TestConfiguration(proxyBeanMethods = false) class TestcontainersConfiguration { @Bean @ServiceConnection PostgreSQLContainer<?> postgresContainer() { return new PostgreSQLContainer<>(DockerImageName.parse("postgres:latest")); } }