hi,
I want to test certain underlying services using powermock. but it is complicated.
i would like to get your suggestion
public interface service{
public void some_method(){
}
}
public serviceclient implements service {
...
}
public myserviceclient {
public service getService(){
return service;
}
}
I have written a serviceutil which uses myserviceclient to call and gets the services.
public class serviceutil{
private static service s = myserviceclient.getService();
public void updateservice(){
// do some thing with service
}
}
now i want to test serviceutil method - updateservice
how do i do it?