Comment on What does it really mean to test an interface not the implementation?

hoodlem@hoodlem.me ⁨1⁩ ⁨year⁩ ago

There is no functionality in the interface so there is nothing to test. You test the logic of the implemented methods.

With that said, with reflection you can at least test that an interface has the right method names and annotations present, but I’ve extremely rarely found it useful to do so.

source
Sort:hotnewtop