M
mike
Hi,
Today we have a class that don't have any tests. We need to add unit
tests for it so I imagine I have to make an interface for MySession
class. How can I handle the static one since an interface( called
ISession ) can only contain public or abstract modifier?
cheers,
//mike
Class that we need to abstract to an interface:
=================================
public class MySession {
public static CallSession createFrom(SipFactory sipFactory,
SipServletRequest initialInvite,
Address address) throws IOException, ServletParseException,
ServletException {
.......
return (CallSession)callsession;
}
public String getId() {
return getSession().getId();
}
}
Today we have a class that don't have any tests. We need to add unit
tests for it so I imagine I have to make an interface for MySession
class. How can I handle the static one since an interface( called
ISession ) can only contain public or abstract modifier?
cheers,
//mike
Class that we need to abstract to an interface:
=================================
public class MySession {
public static CallSession createFrom(SipFactory sipFactory,
SipServletRequest initialInvite,
Address address) throws IOException, ServletParseException,
ServletException {
.......
return (CallSession)callsession;
}
public String getId() {
return getSession().getId();
}
}