Is there any way to stub a static method using Arquillian with Junit? Example:
class A {
public static String methodA() {
if(...){
return "Real";
}
return "Stub";
}
}
class B {
public String methodB(){
String test = A.methodA();
if(test.equals("Real"){
// some code here
} else {
// some code here
}
}
}
I need to test methodB() without executing methodA, with stubbing it and expecting its result, is it possible?
Thank you.