Replies: 2 comments
-
Hi. Can you share your test code? Tnx. |
Beta Was this translation helpful? Give feedback.
-
Hi Alex,
As for the test, I tried to test a service that does not use Embabel:
This fails as Embabel does not seem to pick up the models to pick the default model from during its start. @ExtendWith(SpringExtension.class) Here is also my config file:
Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems to me that test classes annotated with @SpringBootTest do not seem to execute the code responsible for populating the models available. It also seems to ignore the @TestPropertySource annotation. As my test execution fails due to the missing default model, I have tried to exclude the embabel AutoConfig classes with no success: @EnableAutoConfiguration(exclude= {AgentPlatformAutoConfiguration.class, AgentBedrockAutoConfiguration.class})
Could you please advice.
Beta Was this translation helpful? Give feedback.
All reactions