I use plain Java and Junit.
Class A {
public void tesetMe(arg1, arg2) {
arg3 = getArg3(arg1);
B.staticMethod(arg1, arg2, arg3);
}
Class B {
public static void staticMethod(String arg1, String arg2, int arg3) {
//---
}
}
I am testing Class A's testMe method. I want to verify if B's staticMethod is called with specific values of arg1, arg2 and arg3. I cannot have a data member of type Class B. I can use mockito but not powermock or any other library. I do not have a container where I can inject an instance of Class B. I have this like a plain simple java programs calling each other.
tesetMeis supposed to have, whether it callsstaticMethodor not.