File tree Expand file tree Collapse file tree
java/edu/eci/cvds/prometeo Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import org .junit .jupiter .api .Test ;
44import org .springframework .boot .test .context .SpringBootTest ;
55import org .springframework .test .context .ActiveProfiles ;
6+ import org .springframework .test .context .TestPropertySource ;
67
7- @ SpringBootTest
8+ @ SpringBootTest ( classes = PrometeoApplication . class )
89@ ActiveProfiles ("test" )
10+ @ TestPropertySource (properties = {
11+ "spring.main.banner-mode=off" ,
12+ "logging.level.org.springframework=ERROR"
13+ })
914class PrometeoApplicationTests {
1015
1116 @ Test
1217 void contextLoads () {
18+ // Test vacío que sólo verifica que se cargue el contexto
1319 }
1420}
Original file line number Diff line number Diff line change 1- # Test database configuration using H2 in-memory database
1+ # Configuración para pruebas
2+ spring.main.banner-mode =off
3+ spring.jpa.hibernate.ddl-auto =create-drop
4+
5+ # Configuración de H2 en memoria para pruebas
26spring.datasource.url =jdbc:h2:mem:testdb
37spring.datasource.username =sa
48spring.datasource.password =
59spring.datasource.driver-class-name =org.h2.Driver
610
7- # JPA configuration for tests
8- spring.jpa.hibernate.ddl-auto =create-drop
9- spring.jpa.show-sql =true
10- spring.jpa.properties.hibernate.dialect =org.hibernate.dialect.H2Dialect
11-
12- # Disable OpenAI for tests
13- openai.api.key =test-key
14- openai.api.url =test-url
11+ # Deshabilitar características no necesarias para pruebas
12+ spring.jpa.show-sql =false
13+ spring.jpa.properties.hibernate.format_sql =false
1514
16- # Server configuration
17- server.port = 8081
15+ # Desactivar seguridad para pruebas si es necesario
16+ spring.security.enabled = false
You can’t perform that action at this time.
0 commit comments