Skip to content

Implemented integration tests #35

Implemented integration tests

Implemented integration tests #35

GitHub Actions / Unit & Integration Test Reporter succeeded Dec 1, 2023 in 1s

Unit & Integration Test Reporter ✅

Tests passed successfully

Report Passed Failed Skipped Time
build/reports/junit5/TEST-com.project.ipms.controller.ApiResponseTest.xml 5✅ 20ms
build/reports/junit5/TEST-com.project.ipms.controller.FileControllerTest.xml 35✅ 2s
build/reports/junit5/TEST-com.project.ipms.exception.ApiExceptionHandlerTest.xml 12✅ 157ms
build/reports/junit5/TEST-com.project.ipms.IntegrationFullTest.xml 6✅ 9s
build/reports/junit5/TEST-com.project.ipms.IpmServiceTests.xml 1✅ 1s
build/reports/junit5/TEST-com.project.ipms.mongodb.ClientEntryTest.xml 2✅ 17ms
build/reports/junit5/TEST-com.project.ipms.mongodb.MongoDBServiceImplTest.xml 11✅ 199ms
build/reports/junit5/TEST-com.project.ipms.service.FileServiceImplTest.xml 6✅ 715ms
build/reports/junit5/TEST-com.project.ipms.service.ImageServiceImplTest.xml 3✅ 5s
build/reports/junit5/TEST-com.project.ipms.service.ImageServiceIntTest.xml 4✅ 618ms
build/reports/junit5/TEST-com.project.ipms.util.ImageFileUtilTest.xml 12✅ 336ms

✅ build/reports/junit5/TEST-com.project.ipms.controller.ApiResponseTest.xml

5 tests were completed in 20ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.controller.ApiResponseTest 5✅ 20ms

✅ com.project.ipms.controller.ApiResponseTest

✅ testToString()
✅ getStatusCode()
✅ testHashCode()
✅ getResponseMessage()
✅ testEquals()

✅ build/reports/junit5/TEST-com.project.ipms.controller.FileControllerTest.xml

35 tests were completed in 2s with 35 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.controller.FileControllerTest 35✅ 2s

✅ com.project.ipms.controller.FileControllerTest

✅ testImageSaturation1()
✅ testImageSaturation2()
✅ testImageSaturation3()
✅ testImageSaturation4()
✅ testImageSaturation5()
✅ testUploadFile1()
✅ testUploadFile2()
✅ testUploadFile3()
✅ testUploadFile4()
✅ testUploadFile5()
✅ testUploadFile6()
✅ testUploadFile7()
✅ testUploadFile8()
✅ testImageTransparent1()
✅ testImageTransparent2()
✅ testImageTransparent3()
✅ testImageTransparent4()
✅ testImageTransparent5()
✅ testImageTransparent6()
✅ testGenerateClientID()
✅ testDownloadFile1()
✅ testDownloadFile2()
✅ testDownloadFile3()
✅ testDownloadFile4()
✅ testDownloadFile5()
✅ testDownloadFile6()
✅ testDownloadFile7()
✅ testImageCrop1()
✅ testImageCrop2()
✅ testImageCrop3()
✅ testImageCrop4()
✅ testImageCrop5()
✅ testImageCrop6()
✅ testImageCrop7()
✅ testImageCrop8()

✅ build/reports/junit5/TEST-com.project.ipms.exception.ApiExceptionHandlerTest.xml

12 tests were completed in 157ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.exception.ApiExceptionHandlerTest 12✅ 157ms

✅ com.project.ipms.exception.ApiExceptionHandlerTest

✅ handleMissingServletRequestPartException()
✅ handleMultipartException()
✅ handleInvalidCredentialsException()
✅ testHandleInvalidFileTypeException()
✅ handleMissingServletRequestParameterException()
✅ handleFileAlreadyExistsException()
✅ handleBadRequestException()
✅ handleHttpMessageNotReadableException()
✅ handleNumberFormatException()
✅ handleFileNotFoundException()
✅ handleIOException()
✅ handleCriticalServerException()

✅ build/reports/junit5/TEST-com.project.ipms.IntegrationFullTest.xml

6 tests were completed in 9s with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.IntegrationFullTest 6✅ 9s

✅ com.project.ipms.IntegrationFullTest

✅ fileControllerIntTest6()
✅ fileControllerIntTest5()
✅ fileControllerIntTest4()
✅ fileControllerIntTest3()
✅ fileControllerIntTest2()
✅ fileControllerIntTest1()

✅ build/reports/junit5/TEST-com.project.ipms.IpmServiceTests.xml

1 tests were completed in 1s with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.IpmServiceTests 1✅ 1s

✅ com.project.ipms.IpmServiceTests

✅ serviceStatusTest()

✅ build/reports/junit5/TEST-com.project.ipms.mongodb.ClientEntryTest.xml

2 tests were completed in 17ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.mongodb.ClientEntryTest 2✅ 17ms

✅ com.project.ipms.mongodb.ClientEntryTest

✅ clientEntryTest1()
✅ clientEntryTest2()

✅ build/reports/junit5/TEST-com.project.ipms.mongodb.MongoDBServiceImplTest.xml

11 tests were completed in 199ms with 11 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.mongodb.MongoDBServiceImplTest 11✅ 199ms

✅ com.project.ipms.mongodb.MongoDBServiceImplTest

✅ testMongoDBFileCheck1()
✅ testMongoDBFileCheck2()
✅ testMongoDBFileCheck3()
✅ testMongoDBOperationCheck1()
✅ testMongoDBOperationCheck2()
✅ testMongoDBOperationCheck3()
✅ testMongoDBOperationCheck4()
✅ testUploadFile1()
✅ testUploadFile2()
✅ testUploadFile3()
✅ testGenerateNewKey()

✅ build/reports/junit5/TEST-com.project.ipms.service.FileServiceImplTest.xml

6 tests were completed in 715ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.service.FileServiceImplTest 6✅ 715ms

✅ com.project.ipms.service.FileServiceImplTest

✅ testListOfFiles()
✅ testDeleteFile1()
✅ testDeleteFile2()
✅ testUploadFile()
✅ testDownloadFile1()
✅ testDownloadFile2()

✅ build/reports/junit5/TEST-com.project.ipms.service.ImageServiceImplTest.xml

3 tests were completed in 5s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.service.ImageServiceImplTest 3✅ 5s

✅ com.project.ipms.service.ImageServiceImplTest

✅ testImageSaturation()
✅ testImageTransparency1()
✅ testImageCropping()

✅ build/reports/junit5/TEST-com.project.ipms.service.ImageServiceIntTest.xml

4 tests were completed in 618ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.service.ImageServiceIntTest 4✅ 618ms

✅ com.project.ipms.service.ImageServiceIntTest

✅ integrationTest1()
✅ integrationTest2()
✅ integrationTest3()
✅ integrationTest4()

✅ build/reports/junit5/TEST-com.project.ipms.util.ImageFileUtilTest.xml

12 tests were completed in 336ms with 12 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.project.ipms.util.ImageFileUtilTest 12✅ 336ms

✅ com.project.ipms.util.ImageFileUtilTest

✅ testImageCompare1()
✅ testImageCompare2()
✅ checkFileValidTest10()
✅ checkFileValidTest1()
✅ checkFileValidTest2()
✅ checkFileValidTest3()
✅ checkFileValidTest4()
✅ checkFileValidTest5()
✅ checkFileValidTest6()
✅ checkFileValidTest7()
✅ checkFileValidTest8()
✅ checkFileValidTest9()