12637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin/* 22637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin * Copyright (c) 2007 Mockito contributors 32637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin * This program is made available under the terms of the MIT License. 42637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin */ 52637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin 62637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffinpackage org.mockito.internal.progress; 72637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin 82637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin 92637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffinimport org.mockito.internal.verification.Times; 102637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffinimport org.mockito.internal.verification.VerificationModeFactory; 112637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin 122637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffinpublic class VerificationModeBuilder { 132637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin 142637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin private Integer times = 1; 152637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin 162637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin public Times inOrder() { 172637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin return VerificationModeFactory.times(times); 182637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin } 192637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin 202637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin public VerificationModeBuilder times(int times) { 212637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin this.times = times; 222637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin return this; 232637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin } 242637d96c202372854a7c71466ddcc6e90fc4fc53Paul Duffin} 25