cameronlee314 commented on a change in pull request #962: SAMZA-2135: Provide a way inject ExternalContext to TestRunner URL: https://github.com/apache/samza/pull/962#discussion_r267146513
########## File path: samza-test/src/test/java/org/apache/samza/test/framework/StreamTaskIntegrationTest.java ########## @@ -263,4 +268,10 @@ public void genData(Map<Integer, List<KV>> inputPartitionData, Map<Integer, List } } -} \ No newline at end of file +} + +class TestContext implements ExternalContext { + public int getMultiplier() { + return 10; Review comment: To give a slightly better example of how `ExternalContext` might be used, maybe pass the multiplier as an argument when creating a `TestContext` instead of hardcoding it into `getMultiplier`. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services