DataTransferAccessTest.ktDataTransferTestService (creates test areas and users), DataTransferPageRest (REST controller under test)testUser1, testUser2) created via DataTransferTestServiceinitJCRTestRepo(MODUL_NAME, "accessTestRepo") — provides a sandboxed Jackrabbit content repository for file attachment testinginitialize() is called on first use (not @PostConstruct — database isn't ready at that point), creates the test areaTests use DataTransferPageRest directly — the internal REST controller (not the public one at #100) — to verify access control logic at the API level:
accessGroupIds — should have file accessaccessUserIds can access filesexternal_download_enabled / external_upload_enabled flags workDataTransferPageRest — the internal REST controller under testDataTransferTestService — test helper that pre-populates DB and JCRAbstractTestBase — ProjectForge's Spring Boot test base (DB transaction rollback, user simulation)FileObject (JCR) — mock file objects for attachment tests
Integration test for DataTransfer access control — verifies that admins, group members, and individual users have correct file access rights. Extends
AbstractTestBasewhich provides Spring context injection (@Autowired), user switching (logon()), and JCR test repository initialization.