Skip to content

Commit

Permalink
SD/fix/#30 Recreated test application.yml but removed @SpringBootTest
Browse files Browse the repository at this point in the history
…due to conflict
  • Loading branch information
sarajaned committed Jun 29, 2023
1 parent 146a3fb commit 7eedecd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
class OnlineBookStoreApplicationTests {
class OnlineBookStoreApplicationTests {

@Test
void contextLoads() {
Expand Down
13 changes: 13 additions & 0 deletions online-book-store/src/test/java/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
spring:
datasource:
url: jdbc:postgresql://localhost:5432/admin-unit-test
username: admin
password: 1234
jpa:
hibernate:
ddl-auto: validate
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: true
show-sql: true

0 comments on commit 7eedecd

Please sign in to comment.