
¿cómo probar un método?
Publicado por Ermest (13 intervenciones) el 09/11/2016 20:06:33
Hola comunidad.
Necesito ayuda sobre un método que me regresa un Objeto tipo Response, este método necesito testearlo con Junit y Mockito.
'¿cómo consigp testearlo bien?
gracias por el apoyo
Necesito ayuda sobre un método que me regresa un Objeto tipo Response, este método necesito testearlo con Junit y Mockito.
1
2
3
4
5
6
7
8
public RecuperarResponse invocacionManzanas(String name, String Id, Product [] producto){
RecuperarResponse response= null;
Peticionrequest peticiont=null;
response = service.recuperarproductos(peticion);
return response;
}
'¿cómo consigp testearlo bien?
gracias por el apoyo
Valora esta pregunta


0