Mockito Features and Best Practices by Kenneth Kousen
ฝัง
- เผยแพร่เมื่อ 5 ต.ค. 2024
- This session shows the features and optimal ways to generated mocks, stubs, and spies with Mockito. Find out when tools like Mockito are useful and how best to employ them to diagnose issues in your code. Features covered will include creating mocks and stubs, mocking final methods and classes, mocking static methods, and spying on existing classes. It will also cover when NOT to use mocks and stubs, so you don't waste time testing the wrong things.
Great work 👏🏻
BTW, in the AstroGateway catch block, how about throwing the IOException as UncheckedIOException rather than RuntimeException