1/*
2 * Copyright (c) 2007 Mockito contributors
3 * This program is made available under the terms of the MIT License.
4 */
5
6package org.mockito.internal.verification;
7
8import org.mockito.verification.VerificationMode;
9
10public class VerificationModeFactory {
11
12    public static VerificationMode atLeastOnce() {
13        return atLeast(1);
14    }
15
16    public static VerificationMode atLeast(int minNumberOfInvocations) {
17        return new AtLeast(minNumberOfInvocations);
18    }
19
20    public static VerificationMode only() {
21        return new Only(); //TODO make exception message nicer
22    }
23
24    public static Times times(int wantedNumberOfInvocations) {
25        return new Times(wantedNumberOfInvocations);
26    }
27
28    public static Calls calls(int wantedNumberOfInvocations) {
29        return new Calls( wantedNumberOfInvocations );
30    }
31
32    public static NoMoreInteractions noMoreInteractions() {
33        return new NoMoreInteractions();
34    }
35
36    public static VerificationMode atMost(int maxNumberOfInvocations) {
37        return new AtMost(maxNumberOfInvocations);
38    }
39}