method under test : listtracking scenario : when tracking is available expectation : it will return a list of tracking concode_field_sep GameTrackingDao gameTrackingDao concode_elem_sep Session session concode_elem_sep Query query concode_elem_sep SessionFactory sessionFactory concode_field_sep void testGetTopGamesWhenTopGamesAreAvailable concode_elem_sep void testSaveGameTracking concode_elem_sep void setUp concode_elem_sep void testListTrackingWhenTrackingisNotAvailable concode_elem_sep void tearDown concode_elem_sep void testGetTopGamesWhenTopGamesAreNotAvailable
void function ( ) { Mockito . when ( query . list ( ) ) . thenReturn ( new ArrayList < GameTracking > ( ) ) ; Assert . assertNotNull ( gameTrackingDao . listTracking ( ) ) ; }