-
Notifications
You must be signed in to change notification settings - Fork 674
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
SOLR-17009 json.wrf parameter ignored in JacksonJsonWriter #1977
Conversation
Makes sense... I sorta wish we had a unit test. I noticed that the other Writers all have reasonable tests. But the Json ones don't.. |
I agree! I was looking for an example of how to test this and there were not too many... |
b23ff76
to
5c73921
Compare
I added a test but GH is having a moment and taking some time to show the latest. for future reference this is the comparison from the 2 json writers
|
@@ -314,4 +315,35 @@ public void testConstantsUnchanged() { | |||
assertEquals("arrntv", JSONWriter.JSON_NL_ARROFNTV); | |||
assertEquals("json.wrf", JSONWriter.JSON_WRAPPER_FUNCTION); | |||
} | |||
|
|||
@Test | |||
public void testWfrJacksonJsonWriter() throws IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love the test... Would it make sense to break out these tests? Move to the JacksonJsonResponseWriterTest.java and JsonResponseWriterTest.java?
(cherry picked from commit 540f61c)
(cherry picked from commit 540f61c)
https://issues.apache.org/jira/browse/SOLR-17009
Description
Please provide a short description of the changes you're making with this pull request.
Solution
Please provide a short description of the approach taken to implement your solution.
Tests
Please describe the tests you've developed or run to confirm this patch implements the feature or solves the problem.
Checklist
Please review the following and check all that apply:
main
branch../gradlew check
.