/
hard2kill
/
CICD_building_projects
Обзор
Документация
Войти
/
hard2kill
/
CICD_building_projects
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/test/java/com/devopstestapp/demo/DemoAppTestConfiguration.java
22 строки
682 B
hard2kill
Fix trabls
19 окт 2025, 18:44
19 окт 2025, 18:44
755995e
Код
Авторство
О чём код?
package com.devopstestapp.demo; import com.devopstestapp.demo.dataacess.Database; import com.devopstestapp.demo.domain.Article; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; import org.springframework.test.context.ActiveProfiles; import java.util.List; import java.util.stream.IntStream; @Profile("test") @Configuration public class DemoAppTestConfiguration { @Bean public Database<Article> getDatabase() { return new Database<>(List.of(new Article("test", "test"))); } }