Skip to content

Implement methods hashCode and equals in EmbeddedKafkaContextCustomizer #804

@OArtyomov

Description

@OArtyomov

Problem:
We have set of tests(near 150), which use EmbeddedKafka. If each test will have their own context, test start will be very expensive operation. Spring has concept of caching context between tests. HashCode and Equals methods of ContextCustomizer are using for calculating key in cache. See example of methods implementation in org.springframework.boot.test.mock.mockito.MockitoContextCustomizer, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer. It will be good to be fixed in 1.3.X version. It is not bottleneck now, we have workaround, but it will be good to fix it in core library.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions