@echo off set JAVA_HOME=C:\Program Files\Java\latest\jdk-25 set APP_JAR=target\datacollect-cli-0.1.0-jar-with-dependencies.jar set SAMPLE=data\sample_test.json set EXPORT=data\export_result.json echo ======================================== echo Import/Export Feature Test echo ======================================== echo. echo [TEST 1] Import sample JSON file echo Command: import %SAMPLE% java -jar %APP_JAR% import %SAMPLE% echo. echo. echo [TEST 2] List articles echo Command: list java -jar %APP_JAR% list echo. echo. echo [TEST 3] Export to JSON echo Command: export %EXPORT% --format json java -jar %APP_JAR% export %EXPORT% --format json echo. echo. echo [TEST 4] Check exported file if exist %EXPORT% ( echo [SUCCESS] Export file created echo. echo First 1000 characters of exported file: powershell -Command "Get-Content %EXPORT% | Select-Object -First 20" ) else ( echo [ERROR] Export file NOT created ) echo. echo. echo [TEST 5] Test duplicate import echo Command: import %SAMPLE% (again) java -jar %APP_JAR% import %SAMPLE% echo. echo. echo [TEST 6] Final list echo Command: list java -jar %APP_JAR% list echo. echo. echo ======================================== echo Tests completed! Check output above. echo ========================================