Skip to content

Add .editorconfig and reformat the source code #59

Add .editorconfig and reformat the source code

Add .editorconfig and reformat the source code #59

GitHub Actions / Tests report succeeded Oct 27, 2023 in 0s

Tests report ✅

Tests passed successfully

Report Passed Failed Skipped Time
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.ApplicationSpec.xml 1✅ 751ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointSpec.xml 8✅ 815ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedSpec.xml 2⚪ 1ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedTest.xml 2✅ 254ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointTest.xml 8✅ 362ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointAuthorizationDisabledSpec.xml 1✅ 147ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointSpec.xml 17✅ 2s
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedSpec.xml 2✅ 75ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedTest.xml 2✅ 137ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointTest.xml 17✅ 1s
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.SwaggerEndpointSpec.xml 4✅ 511ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.SwaggerEndpointTest.xml 4✅ 276ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.repository.PersonRepositorySpec.xml 4✅ 140ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.repository.PersonRepositoryTest.xml 4✅ 73ms
/home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.service.CacheableServiceSpec.xml 1✅ 31ms

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.ApplicationSpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.ApplicationSpec 1✅ 751ms

✅ com.droidablebee.springboot.rest.ApplicationSpec

✅ context initializes successfully

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointSpec.xml

8 tests were completed in 815ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.ActuatorEndpointSpec 8✅ 815ms

✅ com.droidablebee.springboot.rest.endpoint.ActuatorEndpointSpec

✅ info
✅ health - w/out authorization token
✅ health - with authorization token
✅ health - w/out authorization token and configured role
✅ env - w/out authorization token
✅ env - with authorization token
✅ custom actuator - w/out authorization token
✅ custom actuator - with authorization token

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedSpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedSpec 2⚪ 1ms

✅ com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedSpec

⚪ get custom - authorized
⚪ get info - extended

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedTest.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedTest 2✅ 254ms

✅ com.droidablebee.springboot.rest.endpoint.ActuatorEndpointStubbedTest

✅ getInfoExtended()
✅ getCustomAuthorized()

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.ActuatorEndpointTest.xml

8 tests were completed in 362ms with 8 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.ActuatorEndpointTest 8✅ 362ms

✅ com.droidablebee.springboot.rest.endpoint.ActuatorEndpointTest

✅ getEnv()
✅ getEnvAuthorized()
✅ getInfo()
✅ getHealthAuthorized()
✅ getCustom()
✅ getHealth()
✅ getHealthAuthorizedWithConfiguredRole()
✅ getCustomAuthorized()

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointAuthorizationDisabledSpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.PersonEndpointAuthorizationDisabledSpec 1✅ 147ms

✅ com.droidablebee.springboot.rest.endpoint.PersonEndpointAuthorizationDisabledSpec

✅ get person by id does not require scope if authorization is disabled

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointSpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.PersonEndpointSpec 17✅ 2s

✅ com.droidablebee.springboot.rest.endpoint.PersonEndpointSpec

✅ get person by id - unauthorized, no token
✅ get person by id - unauthorized, invalid token
✅ get person by id - forbidden, invalid scope
✅ get person by id
✅ get all
✅ create person validation - error last name
✅ create person validation - error middle name
✅ create person validation - address
✅ create person validation - token
✅ create person validation - user id
✅ create person - unauthorized
✅ create person - forbidden, invalid scope
✅ create person
✅ create person - with date verification
✅ request body validation - invalid json value
✅ request body validation - invalid json
✅ handle http request method not supported exception

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedSpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedSpec 2✅ 75ms

✅ com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedSpec

✅ get person By id
✅ handle generic exception

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedTest.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedTest 2✅ 137ms

✅ com.droidablebee.springboot.rest.endpoint.PersonEndpointStubbedTest

✅ handleGenericException()
✅ getPersonById()

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.PersonEndpointTest.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.PersonEndpointTest 17✅ 1s

✅ com.droidablebee.springboot.rest.endpoint.PersonEndpointTest

✅ createPersonValidationErrorMiddleName()
✅ createPersonValidationUserId()
✅ createPersonValidationErrorLastName()
✅ getPersonByIdForbiddenInvalidScope()
✅ handleHttpRequestMethodNotSupportedException()
✅ createPersonWithDateVerification()
✅ getAll()
✅ requestBodyValidationInvalidJsonValue()
✅ createPersonForbiddenInvalidScope()
✅ getPersonById()
✅ createPersonUnauthorized()
✅ getPersonByIdUnauthorizedNoToken()
✅ createPersonValidationToken()
✅ requestBodyValidationInvalidJson()
✅ getPersonByIdUnauthorizedInvalidToken()
✅ createPersonValidationAddress()
✅ createPerson()

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.SwaggerEndpointSpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.SwaggerEndpointSpec 4✅ 511ms

✅ com.droidablebee.springboot.rest.endpoint.SwaggerEndpointSpec

✅ get api docs
✅ get api docs - swagger config
✅ get swagger html
✅ get swagger html index

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.endpoint.SwaggerEndpointTest.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.endpoint.SwaggerEndpointTest 4✅ 276ms

✅ com.droidablebee.springboot.rest.endpoint.SwaggerEndpointTest

✅ getApiDocSwaggerConfig()
✅ getSwaggerHtmlIndex()
✅ getApiDocs()
✅ getSwaggerHtml()

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.repository.PersonRepositorySpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.repository.PersonRepositorySpec 4✅ 140ms

✅ com.droidablebee.springboot.rest.repository.PersonRepositorySpec

✅ getOne
✅ getReferenceUsingEntityManager
✅ findByIdUsingOptional
✅ findByIdUsingEntityManager

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.repository.PersonRepositoryTest.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.repository.PersonRepositoryTest 4✅ 73ms

✅ com.droidablebee.springboot.rest.repository.PersonRepositoryTest

✅ getOne()
✅ getReferenceUsingEntityManager()
✅ findByIdUsingOptional()
✅ findByIdUsingEntityManager()

✅ /home/runner/work/spring-boot-rest-example/spring-boot-rest-example/build/test-results/test/TEST-com.droidablebee.springboot.rest.service.CacheableServiceSpec.xml

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

Test suite Passed Failed Skipped Time
com.droidablebee.springboot.rest.service.CacheableServiceSpec 1✅ 31ms

✅ com.droidablebee.springboot.rest.service.CacheableServiceSpec

✅ retrieve - cached