EN · DE · RU · FR · ES

#829: CardDavUtilsTest.kt

projectforge-business/src/main/kotlin/org/projectforge/business/address/AddressTextImportService.kt Test - CardDAV, projectforge-carddav/src/test/kotlin/org/projectforge/carddav/CardDavUtilsTest.kt 186 lines · 97 code · 63 comments · 26 blank
Unit tests for `CardDavUtils`: `getPrincipalsUsersUrl()` (URL construction), `normalizedUri()` (path normalization), and `extractContactId()` (ID parsing from VCF/image URLs).

Architecture

Tested Class

CardDavUtils — utility class for CardDAV URL manipulation and contact ID extraction.

Test Methods

Dependencies

ImportPurpose
org.junit.jupiter.api.AssertionsTest assertions
org.junit.jupiter.api.TestJUnit 5 test annotation
org.projectforge.framework.persistence.user.entities.PFUserDOUser entity for URL construction
org.projectforge.carddav.CardDavUtilsClass under test

Git History

868d6abb7 2025 -> 2026
63081666f Source file headers: 2024-> 2025.
cc9abacea CardDav-Server: WIP: image handling.
c4062ed97 WIP: Carddav
40e554cbe WIP: Carddav