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

XML: add ability to provide a specific XMLOutputFactory #1945

Merged
merged 2 commits into from Sep 26, 2019
Merged

XML: add ability to provide a specific XMLOutputFactory #1945

merged 2 commits into from Sep 26, 2019

Conversation

jphelp32
Copy link
Contributor

Purpose

add ability to provide a specific XMLOutputFactory when instantiating an Xml Writer

References

References #1936

Changes

Background Context

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks perfect.
A test case exercising this new possibility would be great.

@jphelp32
Copy link
Contributor Author

@ennru I've added a scala and a java unit test. Tried to mock/spy the XMLOutputFactory w/mockito to verify that it's actually being used, but was unable to get that to work. I think b/c the implementation class is final and therefore cannot be mocked by mockito. I hope this suffices.

Copy link
Member

@ennru ennru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@ennru ennru added this to the 2.0.0 milestone Sep 26, 2019
@ennru ennru changed the title XML add ability to provide a specific XMLOutputFactory (#1936) XML: add ability to provide a specific XMLOutputFactory Sep 26, 2019
@ennru ennru merged commit 208fc96 into akka:master Sep 26, 2019
@ennru
Copy link
Member

ennru commented Sep 26, 2019

Great, thank you for proposing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants