Description
In unit test we have lots of duplicate code for closing KStreamTestDriver upon completing the test:
@After public void tearDown() { if (driver != null) { driver.close(); } driver = null; }
One way to remove this duplicate code is to make KStreamTestDriver extending from ExternalResource. By doing this we need to move the constructor logic into a setup / init function and leave the construction empty.
Attachments
Issue Links
- links to