aws / aws-xray-java-agent

The official AWS X-Ray Auto Instrumentation Agent for Java.
Apache License 2.0
42 stars 18 forks source link

Future-proof integration tests & other fixes #45

Closed willarmiros closed 4 years ago

willarmiros commented 4 years ago

Description of changes: This pull request changes some of our integration tests to be compatible with future versions of disco where its reflective data access makes mocking some classes impossible. We do this by instantiating our own extensions of these classes, which are themselves effectively hard-coded mocks. We should be able to return to the original mocking strategy on a further still version of disco, but for now this strategy is compatible with all versions.

Pretty much all other changes in this PR are non-substantive style changes/typo corrections.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.