Handle UnsupportedOperationException in BeanFinalizer #192
GitHub Actions / test report
succeeded
Feb 12, 2024 in 0s
36 passed, 0 failed and 0 skipped
✅ build/test-results/test/TEST-com.coditory.quark.context.BeanConditionsSpec.xml
5 tests were completed in 585ms with 5 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.BeanConditionsSpec | 5✅ | 585ms |
✅ com.coditory.quark.context.BeanConditionsSpec
✅ should register bean with condition on a property
✅ should not register bean with condition on a missing property
✅ should register bean Foo when Bar -> Foo && Foo -> !Bar
✅ should register bean Foo, Bar, Baz when Bar -> Foo -> Baz -> prop(baz.enabled)
✅ should register Baz, Foo when Bar -> Foo -> Baz -> !Bar
✅ build/test-results/test/TEST-com.coditory.quark.context.BeanLifecycleSpec.xml
7 tests were completed in 225ms with 7 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.BeanLifecycleSpec | 7✅ | 225ms |
✅ com.coditory.quark.context.BeanLifecycleSpec
✅ should register beans and initialize them
✅ should finalize beans when closing the context
✅ should initialize eager beans after context is built
✅ should not initialize lazy beans that were not retrieved from the context
✅ should inject dependencies to lifecycle annotated methods
✅ should throw error when dependency for @Init annotated method is missing
✅ should throw error when dependency for @Close annotated method is missing
✅ build/test-results/test/TEST-com.coditory.quark.context.BeanResolutionSpec.xml
9 tests were completed in 81ms with 9 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.BeanResolutionSpec | 9✅ | 81ms |
✅ com.coditory.quark.context.BeanResolutionSpec
✅ should retrieve named bean by type
✅ should fail registering multiple beans with the same name
✅ should retrieve unnamed bean by type when multiple named beans are registered
✅ should fail to retrieve bean by type when multiple named beans are registered
✅ should fail to retrieve bean by type when multiple unnamed beans are registered
✅ should retrieve named bean by type and name
✅ should not retrieve unnamed bean by name
✅ should not retrieve named bean by a different name
✅ should retrieve all named beans by type
✅ build/test-results/test/TEST-com.coditory.quark.context.EventBusRegistrationSpec.xml
4 tests were completed in 69ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.EventBusRegistrationSpec | 4✅ | 69ms |
✅ com.coditory.quark.context.EventBusRegistrationSpec
✅ should not register event bus by default
✅ should register event bus when requested
✅ should subscribe handler annotated with @ContextEventHandler
✅ should not subscribe any handler
✅ build/test-results/test/TEST-com.coditory.quark.context.events.ConfigurationEventEmissionSpec.xml
4 tests were completed in 83ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.events.ConfigurationEventEmissionSpec | 4✅ | 83ms |
✅ com.coditory.quark.context.events.ConfigurationEventEmissionSpec
✅ should emit events when context is built
✅ should emit events when beans are resolved
✅ should emit events when context is closed
✅ should emit events for Configuration beans when context is closed
✅ build/test-results/test/TEST-com.coditory.quark.context.events.ContextEventEmissionSpec.xml
4 tests were completed in 57ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.events.ContextEventEmissionSpec | 4✅ | 57ms |
✅ com.coditory.quark.context.events.ContextEventEmissionSpec
✅ should emit events when context is built
✅ should emit events when beans are resolved
✅ should emit events when context is closed
✅ should not emit context creation events to eventHandler registered as a bean
✅ build/test-results/test/TEST-com.coditory.quark.context.PreconditionsSpec.xml
2 tests were completed in 9ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.PreconditionsSpec | 2✅ | 9ms |
✅ com.coditory.quark.context.PreconditionsSpec
✅ should fail non-null check
✅ should pass non-null check
✅ build/test-results/test/TEST-com.coditory.quark.context.ThrowablesSpec.xml
1 tests were completed in 8ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
com.coditory.quark.context.ThrowablesSpec | 1✅ | 8ms |
✅ com.coditory.quark.context.ThrowablesSpec
✅ should extract root cause of specific type or null
Loading