-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(shop-server) Add first integration test
- Loading branch information
Showing
6 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
shop-server/src/main/resources/application-prod.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# port | ||
server.port=8080 | ||
# database | ||
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres | ||
spring.datasource.username=postgres | ||
spring.datasource.password=1234 | ||
# jpa | ||
spring.jpa.hibernate.ddl-auto=update | ||
spring.jpa.show-sql=true | ||
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect | ||
spring.jpa.properties.hibernate.search.backend.protocol=http | ||
spring.jpa.properties.hibernate.search.backend.hosts=localhost:9200 | ||
# Fix Postgres JPA Error: | ||
# Method org.postgresql.jdbc.PgConnection.createClob() is not yet implemented. | ||
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false | ||
spring.mvc.pathmatch.matching-strategy=ant_path_matcher | ||
# error message | ||
server.error.include-message=always | ||
logging.level.org.hibernate.search.query=DEBUG | ||
logging.level.org.apache.http=DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
shop-server/src/test/java/fr/fullstack/shopapp/model/ShopAppIntegrationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package fr.fullstack.shopapp.model; | ||
|
||
import fr.fullstack.shopapp.ShopAppApplication; | ||
import org.junit.jupiter.api.Test; | ||
import org.junit.jupiter.api.extension.ExtendWith; | ||
import org.springframework.test.context.ContextConfiguration; | ||
import org.springframework.test.context.junit.jupiter.SpringExtension; | ||
import org.springframework.test.context.web.WebAppConfiguration; | ||
|
||
@ExtendWith(SpringExtension.class) | ||
@ContextConfiguration(classes = { ShopAppApplication.class }) | ||
@WebAppConfiguration | ||
public class ShopAppIntegrationTest { | ||
|
||
@Test | ||
public void shouldStartContext() { | ||
|
||
} | ||
} |