Should adapters or wrappers be unit tested?
- by m3th0dman
Suppose that I have a class that implements some logic:
public MyLogicImpl implements MyLogic {
public void myLogicMethod() {
//my logic here
}
}
and somewhere else a test class:
public MyLogicImplTest {
@Test
public void testMyLogicMethod() {
/test my logic
}
}
I also have:
@WebService
public MyWebServices class {
@Inject
private MyLogic myLogic;
@WebMethod
public void myLogicWebMethod() {
myLogic.myLogicMethod();
}
}
Should there be a test unit for myLogicWebMethod or should the testing for it be handled in integration testing.