-
|
I have a schema like this And have a test class in kotlin like this But when I run my test, I am getting an error which the message
The dgs pagination framework creates the ImageConnection type when spring boot app starts up normally but not for this test. I tried googling and could not find anyone else who encountered this issue. Is there a reference or a guide to test out pagination when using connection directive or is this something not yet supported? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Managed to get my test to pass, had to add Leaving this open to see if this is the correct way to go about it |
Beta Was this translation helpful? Give feedback.
-
|
Yes, you do need to specify all the required classes to load when writing
a test, so that is the correct approach.
…On Thu, Jan 27, 2022 at 6:49 AM Bryan Cantos ***@***.***> wrote:
Managed to get my test to pass, had to add
DgsPaginationTypeDefinitionRegistry inside the SpringBootTest classes.
Leaving this open to see if this is the correct way to go about it
—
Reply to this email directly, view it on GitHub
<#846 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJ5JPXKVP7SO46B7E2H3LSLUYFLOJANCNFSM5M6B2MJQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
|
FWIW, I'm including |
Beta Was this translation helpful? Give feedback.
Managed to get my test to pass, had to add
DgsPaginationTypeDefinitionRegistryinside the SpringBootTest classes.Leaving this open to see if this is the correct way to go about it