Replies: 1 comment
-
|
https://github.com/Netflix/dgs-framework/pull/302/files try to use this approach |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to write a unit test for one of my DataFetcher in which I am using DgsContext to get the request Header. An example is shown below in my code:
String code= DgsContext.getRequestData(dfe).getHeaders().get("Authorization").get(0);Now during writing the unit test am unable to write a unit test for this since it seems DgsContext has a static anonymous function it seems?
Either ways would there be any documentation on how can I get past this. Currently in my test it throws a NullPOinterException since the test runner isnt aware about the DgsContext at all.
Beta Was this translation helpful? Give feedback.
All reactions