Fakultas Ilmu Komputer UI

Commit f52ad1f3 authored by RYAN PUTRA BUDIANTO's avatar RYAN PUTRA BUDIANTO
Browse files

Merge branch 'staging' of...

Merge branch 'staging' of https://gitlab.cs.ui.ac.id/landi-and-friends/landi-and-friends-adpro into staging
parents 73e635e3 d33751ab
Pipeline #134275 canceled with stages
in 49 seconds
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
spring.web.resources.add-mappings=true
spring.thymeleaf.cache=false
spring.datasource.hikari.connectionTimeout=20000
spring.datasource.hikari.maximumPoolSize=5
spring.datasource.maximum-pool-size=100
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.datasource.url=${SPRING_DATASOURCE_URL}
spring.datasource.username=${SPRING_DATASOURCE_USERNAME}
spring.datasource.password=${SPRING_DATASOURCE_PASSWORD}
spring.jpa.hibernate.ddl-auto=update
admin.username = ${ADMIN_USERNAME}
admin.password = ${ADMIN_PASSWORD}
admin.email = ${ADMIN_EMAIL}
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.properties.hibernate.jdbc.lob.non_contextual_creation=true
server.error.whitelabel.enabled=false
spring.mail.host=smtp.gmail.com
spring.mail.port=587
spring.mail.username=${MAIL_USERNAME}
spring.mail.password=${MAIL_PASSWORD}
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
mail.smtp.debug=true
management.endpoints.web.exposure.include=*
......@@ -13,7 +13,7 @@ admin.username = ${ADMIN_USERNAME}
admin.password = ${ADMIN_PASSWORD}
admin.email = ${ADMIN_EMAIL}
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=create-drop
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
server.error.whitelabel.enabled=false
......
......@@ -120,6 +120,7 @@ class ProfileControllerTest {
@Test
@WithMockUser(authorities = "ADMIN")
void GetProfileShouldDisplayTheCorrectView() throws Exception {
when(userService.getUserByName(any())).thenReturn(new User());
mockMvc.perform(get("/profile"))
.andExpect(status().isOk())
.andExpect(handler().methodName("profile"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment