refactor: re-design habit tracking entity #1229
Test results ✅
✅ test/TEST-de.codecentric.habitcentric.track.ApplicationConfigurationTest.xml
2 tests were completed in 2s with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.ApplicationConfigurationTest | 2✅ | 2s |
✅ de.codecentric.habitcentric.track.ApplicationConfigurationTest
✅ shouldUseInsecureJwtDecoder()
✅ shouldUseFixedLocaleUs()
✅ test/TEST-de.codecentric.habitcentric.track.auth.AuthErrorExceptionTest.xml
4 tests were completed in 74ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.auth.AuthErrorExceptionTest | 4✅ | 74ms |
✅ de.codecentric.habitcentric.track.auth.AuthErrorExceptionTest
✅ withErrorAndCauseAndTemplateProperties()
✅ withError()
✅ withErrorAndTemplateProperties()
✅ withErrorAndCause()
✅ test/TEST-de.codecentric.habitcentric.track.auth.InsecureJwtDecoderTest.xml
4 tests were completed in 191ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.auth.InsecureJwtDecoderTest | 4✅ | 191ms |
✅ de.codecentric.habitcentric.track.auth.InsecureJwtDecoderTest
✅ decode_whenInvalidSignatureToken_thenSuccess()
✅ decode_whenMalformedPayloadToken_thenJwtException()
✅ decode_whenValidToken_thenSuccess()
✅ decode_whenMalformedHeaderToken_thenJwtException()
✅ test/TEST-de.codecentric.habitcentric.track.auth.UserIdArgumentResolverTest.xml
5 tests were completed in 585ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.auth.UserIdArgumentResolverTest | 5✅ | 585ms |
✅ de.codecentric.habitcentric.track.auth.UserIdArgumentResolverTest
✅ shouldNotSupportParametersWithoutUserIdAnnotation()
✅ shouldThrowAnExceptionWhenTheAuthorizationHeaderIsMissing()
✅ shouldSupportParametersWithUserIdAnnotation()
✅ shouldExtractUserIdFromJwtToken()
✅ shouldThrowAnExceptionWhenTheAuthorizationHeaderIsBasicAuth()
✅ test/TEST-de.codecentric.habitcentric.track.error.ApiErrorExceptionHandlerTest.xml
5 tests were completed in 73ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.error.ApiErrorExceptionHandlerTest | 5✅ | 73ms |
✅ de.codecentric.habitcentric.track.error.ApiErrorExceptionHandlerTest
✅ handleShouldMapApiExceptionsWithCauseAndTemplateProperties()
✅ toResponseErrorShouldMapApiErrorsWithoutDetail()
✅ toResponseErrorShouldMapApiErrors()
✅ handleShouldMapApiExceptions()
✅ toResponseErrorShouldMapApiErrorsWithPlaceholders()
✅ test/TEST-de.codecentric.habitcentric.track.error.ApiErrorExceptionTest.xml
4 tests were completed in 9ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.error.ApiErrorExceptionTest | 4✅ | 9ms |
✅ de.codecentric.habitcentric.track.error.ApiErrorExceptionTest
✅ withErrorAndCauseAndTemplateProperties()
✅ withError()
✅ withErrorAndTemplateProperties()
✅ withErrorAndCause()
✅ test/TEST-de.codecentric.habitcentric.track.error.ApiErrorResponseTest.xml
1 tests were completed in 1ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.error.ApiErrorResponseTest | 1✅ | 1ms |
✅ de.codecentric.habitcentric.track.error.ApiErrorResponseTest
✅ errorOccurrencesCanBeIdentifiedByAnUniqueId()
✅ test/TEST-de.codecentric.habitcentric.track.error.ApiErrorTest.xml
8 tests were completed in 142ms with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.error.ApiErrorTest | 8✅ | 142ms |
✅ de.codecentric.habitcentric.track.error.ApiErrorTest
✅ statusCodeShouldBeValid()
✅ titleShouldNotBeBlank()
✅ detailCanBeAnEmptyOptional()
✅ detailShouldNotBeNull()
✅ codeShouldBeUnique()
✅ getDetailCanReplaceTemplateProperties()
✅ titleShouldNotHavePlaceholders()
✅ codeShouldNotBeBlank()
✅ test/TEST-de.codecentric.habitcentric.track.habit.HabitTrackingControllerWebMvcTest.xml
3 tests were completed in 298ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.habit.HabitTrackingControllerWebMvcTest | 3✅ | 298ms |
✅ de.codecentric.habitcentric.track.habit.HabitTrackingControllerWebMvcTest
✅ shouldReturnEmptyArrayWhenTrackRecordsAreNotFound()
✅ shouldFilterOutDuplicateTrackRecords()
✅ shouldReturnTrackRecords()
✅ test/TEST-de.codecentric.habitcentric.track.habit.HabitTrackingErrorExceptionTest.xml
2 tests were completed in 2ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.habit.HabitTrackingErrorExceptionTest | 2✅ | 2ms |
✅ de.codecentric.habitcentric.track.habit.HabitTrackingErrorExceptionTest
✅ withErrorAndCauseAndTemplateProperties()
✅ withErrorAndTemplateProperties()
✅ test/TEST-de.codecentric.habitcentric.track.habit.HabitTrackingTest.xml
4 tests were completed in 8ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.habit.HabitTrackingTest | 4✅ | 8ms |
✅ de.codecentric.habitcentric.track.habit.HabitTrackingTest
✅ trackShouldOverwriteExistingTrackingDates()
✅ trackShouldAddTrackingDates()
✅ trackShouldNotAddTrackingDateIfTrackingDateAlreadyExists()
✅ getSortedTrackingDatesShouldReturnTrackingDatesSortedAscending()
✅ test/TEST-de.codecentric.habitcentric.track.habit.jwt.HabitTrackingControllerJwtWebMvcTest.xml
3 tests were completed in 33ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.habit.jwt.HabitTrackingControllerJwtWebMvcTest | 3✅ | 33ms |
✅ de.codecentric.habitcentric.track.habit.jwt.HabitTrackingControllerJwtWebMvcTest
✅ shouldReturnEmptyArrayWhenTrackRecordsAreNotFound()
✅ shouldFilterOutDuplicateTrackRecords()
✅ shouldReturnTrackRecords()
✅ test/TEST-de.codecentric.habitcentric.track.habit.validation.ConstraintViolationExceptionHandlerTest.xml
1 tests were completed in 49ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
de.codecentric.habitcentric.track.habit.validation.ConstraintViolationExceptionHandlerTest | 1✅ | 49ms |
✅ de.codecentric.habitcentric.track.habit.validation.ConstraintViolationExceptionHandlerTest
✅ canHandleConstraintViolationExceptions()