1 | package edu.ucsb.cs156.happiercows.config; | |
2 | ||
3 | import java.time.ZonedDateTime; | |
4 | import java.util.Optional; | |
5 | import org.springframework.context.annotation.Bean; | |
6 | import org.springframework.context.annotation.Configuration; | |
7 | import org.springframework.data.auditing.DateTimeProvider; | |
8 | import org.springframework.data.jpa.repository.config.EnableJpaAuditing; | |
9 | ||
10 | @Configuration | |
11 | @EnableJpaAuditing(dateTimeProviderRef = "utcDateTimeProvider") | |
12 | public class JpaConfiguration { | |
13 | @Bean | |
14 | public DateTimeProvider utcDateTimeProvider() { | |
15 |
1
1. utcDateTimeProvider : replaced return value with null for edu/ucsb/cs156/happiercows/config/JpaConfiguration::utcDateTimeProvider → SURVIVED |
return () -> { |
16 | ZonedDateTime now = ZonedDateTime.now(); | |
17 |
1
1. lambda$utcDateTimeProvider$0 : replaced return value with Optional.empty for edu/ucsb/cs156/happiercows/config/JpaConfiguration::lambda$utcDateTimeProvider$0 → NO_COVERAGE |
return Optional.of(now); |
18 | }; | |
19 | } | |
20 | } | |
Mutations | ||
15 |
1.1 |
|
17 |
1.1 |