Mock

Contents

    Création du mock

    Programmation du mock (BDD or std flavor)

    import static org.mockito.BDDMockito.given;
    given(myMock.getVehicleDetails(VIN)).willReturn(new VehicleDetails("Honda", "Civic"));
    
    import static org.mockito.Mockito.when;
    when(webdavFetcherService.update()).thenReturn(new UpdateResult(UpdateStatus.UPDATED, wdd));
    

    Proudly Powered by Zim 0.75.2.

    Template by Etienne Gandrille, based on ZeroFiveEight and using JQuery Toc Plugin.