I have two really simple interfaces
public interface Decoder {
public void decode() throws Exception;
}
public interface Encoder {
public void Encode() throws Exception;
}
How can I test these two interfaces using mockito?
I have two really simple interfaces
public interface Decoder {
public void decode() throws Exception;
}
public interface Encoder {
public void Encode() throws Exception;
}
How can I test these two interfaces using mockito?
As Jeroen mentioned in the comments:
What do you want to test? There is nothing to test with an interface.
Instead:
You have to test the implementations of your interfaces. Or test the classes that have a field of type Decoder/Encoder and mock these interfaces. But not the interface itself, that doesn't make sense.