Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid duplicate loading of configuration classes #1055

Closed
christophd opened this issue Nov 13, 2023 · 0 comments · Fixed by #1056
Closed

Avoid duplicate loading of configuration classes #1055

christophd opened this issue Nov 13, 2023 · 0 comments · Fixed by #1056

Comments

@christophd
Copy link
Member

Citrus Version
4.0.0

When loading Citrus components via configuration class make sure to not load configurations multiple times. It leads to port binding conflicts for server components.

@CitrusConfiguration(classes = { CitrusEndpointConfig.class })
public class SomeCitrusTest {
 ...
}

The CitrusEndpointConfig.class should be parsed only once for the given Citrus instance. Depending on the underlying unit test framework and setup it may happen that the config class is parsed multiple times (e.g. when running the tests with Quarkus test extension for JUnit5).

Make sure to load Citrus configuration classes in an idempotent way.

christophd added a commit that referenced this issue Nov 13, 2023
- Make sure to parse configuration classes for a Citrus instance in an idempotent way
- Do not load configuration multiple times as it may lead to port binding errors for server components
christophd added a commit that referenced this issue Nov 13, 2023
- Make sure to parse configuration classes for a Citrus instance in an idempotent way
- Do not load configuration multiple times as it may lead to port binding errors for server components
christophd added a commit that referenced this issue Nov 13, 2023
- Make sure to parse configuration classes for a Citrus instance in an idempotent way
- Do not load configuration multiple times as it may lead to port binding errors for server components
christophd added a commit that referenced this issue Nov 13, 2023
- Make sure to parse configuration classes for a Citrus instance in an idempotent way
- Do not load configuration multiple times as it may lead to port binding errors for server components
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant