Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
40 0 0 0 100% 6.324 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
de.spiritscorp.datasync 16 0 0 0 100% 1.146 s
de.spiritscorp.datasync.controller 11 0 0 0 100% 4.770 s
de.spiritscorp.datasync.model 13 0 0 0 100% 0.408 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

de.spiritscorp.datasync

- Class Tests Errors Failures Skipped Success Rate Time
MainTest 16 0 0 0 100% 1.146 s

de.spiritscorp.datasync.controller

- Class Tests Errors Failures Skipped Success Rate Time
BgControllerTest 11 0 0 0 100% 4.770 s

de.spiritscorp.datasync.model

- Class Tests Errors Failures Skipped Success Rate Time
FileHandlerTest 8 0 0 0 100% 0.128 s
FileScanTest 1 0 0 0 100% 0.006 s
ModelTest 4 0 0 0 100% 0.274 s

Test Cases

[Summary] [Package List] [Test Cases]

FileHandlerTest

2. Test file equality comparison and removal 0.070 s
6. Initial sync: source newer than destination 0.006 s
8. Initial sync: identical files 0.005 s
4. Edge case: identical modification timestamps 0.006 s
1. Test duplicate file detection by content hash 0.004 s
3. Test getSyncFiles with latest version detection (10 comprehensive scenarios) 0.017 s
7. Initial sync: destination newer than source 0.005 s
5. Edge case: empty source and destination maps 0.002 s

FileScanTest

testFileScan 0.004 s

MainTest

6. Should handle complex platform paths containing spaces or backslashes 0.920 s
4. Should successfully resolve all 4 variations of config directory routing parameters 1 ==> Variant: "Long flag with equals" 0.015 s
4. Should successfully resolve all 4 variations of config directory routing parameters 2 ==> Variant: "Short flag with equals" 0.004 s
4. Should successfully resolve all 4 variations of config directory routing parameters 3 ==> Variant: "Long flag with space lookahead" 0.006 s
4. Should successfully resolve all 4 variations of config directory routing parameters 4 ==> Variant: "Short flag with space lookahead" 0.004 s
10. Should resiliently ignore null or empty input arguments 0.008 s
9. Should gracefully pass over unknown options without interrupting standard parameter processing 0.032 s
3. Should redirect debug logs to file when file logging flags are provided[1] "--debug-to-file" 0.008 s
3. Should redirect debug logs to file when file logging flags are provided[2] "-f" 0.004 s
5. Should gracefully handle configuration flag missing its value token at the array end boundary 0.004 s
7. Should not consume subsequent flag as configuration directory path 0.004 s
2. Should enable debug mode when console debug flags are provided[1] "--debug" 0.004 s
2. Should enable debug mode when console debug flags are provided[2] "-d" 0.004 s
1. Should enable boot delay when corresponding flags are provided[1] "--boot-delay" 0.004 s
1. Should enable boot delay when corresponding flags are provided[2] "-b" 0.003 s
8. Should handle complex mixed execution arguments gracefully 0.004 s

BgControllerTest

03: Executor Boot Verification - startBgJob maps interval into initial_delay after system boot 0.529 s
08: Stress Case - Fast application shutdown directly after background routine initialization 0.011 s
04: UI & SystemTray Lifecycle - Verify strict orchestration of UI stage hiding and tray mounting 0.006 s
06: Interrupt & Exception Resilience - Worker thread failures or abort signals must fully roll back active execution states 0.042 s
11: Exception Fallback - Should restore GUI visibility and abort execution if TrayIcon registration fails 0.008 s
02: Executor Ticking Verification - startBgJob maps interval math perfectly into the executor core parameters 0.008 s
07: Teardown Coordination - Decoupling thread frames, unmounting hardware notification shells, and exposing UI surfaces 0.032 s
09: Skip Conditions - Polling routine must ignore jobs where background synchronization is disabled 0.010 s
05: Asynchronous Execution Lifecycle - Tracking job state mutation hooks, thread injection, and Model execution loops 0.011 s
10: Boundary Verification - Polling routine must skip executions when intervals are within valid time limits 0.019 s
01: Private Reflection - determineOptimalCheckTime should resolve the shortest interval configuration 0.009 s

ModelTest

testScanSyncFiles 0.235 s
testBackupFiles 0.015 s
testSyncFiles 0.011 s
testGetSyncFiles 0.009 s