Vote count:
0
I have this simple method in class ABC
public static void updateCorporateBrandFavoriteInfoBeanFromFavoriteUserBean(FavoriteQueueBean favoriteQueueBean, FavoriteInfoBean favoriteInfoBean)
{
ItemsSearchBean itemSearchBean = favoriteInfoBean.getItemsSearchBean();
itemSearchBean.setPreDefinedQuery(getCorporateBrandPredefinedSearchQuery(favoriteQueueBean, itemSearchBean.getPreDefinedQuery()));
}
getCorporateBrandPredefinedSearchQuery(....) is a private method of the same class.
ItemSearchBean is a POJO with getter-setters and setPredefinedQuery is setters method.
How do I unit test for this method using Junit or TestNG with the help of jmockit or without using mocking at all!
Any Suggestion, Any Help will be a great Help Thanks in Advance!
asked 33 secs ago
How do I test this method for Unit Testing using jmockit?
Aucun commentaire:
Enregistrer un commentaire