File tree Expand file tree Collapse file tree
java/com/github/imdmk/nbpcurrencyconverter Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ dependencies {
3232 testImplementation(" org.springframework.boot:spring-boot-starter-data-jpa-test" )
3333 testImplementation(" org.springframework.boot:spring-boot-starter-flyway-test" )
3434 testImplementation(" org.springframework.boot:spring-boot-starter-webmvc-test" )
35+ testImplementation(" com.h2database:h2" )
3536 testRuntimeOnly(" org.junit.platform:junit-platform-launcher" )
3637}
3738
Original file line number Diff line number Diff line change 11package com .github .imdmk .nbpcurrencyconverter ;
22
3- import org .junit .jupiter .api .Test ;
43import org .springframework .boot .test .context .SpringBootTest ;
4+ import org .springframework .test .context .ActiveProfiles ;
55
66@ SpringBootTest
7+ @ ActiveProfiles ("test" )
78class NbpCurrencyConverterApplicationTests {
8-
9- @ Test
10- void contextLoads () {
11- }
12-
139}
Original file line number Diff line number Diff line change 1+ spring.datasource.url =jdbc:h2:mem:testdb
2+ spring.datasource.driver-class-name =org.h2.Driver
3+ spring.datasource.username =sa
4+ spring.datasource.password =
5+
6+ spring.jpa.database-platform =org.hibernate.dialect.H2Dialect
7+
8+ spring.flyway.enabled =false
You can’t perform that action at this time.
0 commit comments