Package mockit
Class InvocationBlocksWithTimesFieldsTest
java.lang.Object
mockit.InvocationBlocksWithTimesFieldsTest
The Class InvocationBlocksWithTimesFieldsTest.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Expect at least once and replay twice.void
Expect at most once but replay twice.void
Expect at most twice and replay once.void
Expect at most zero.void
Expect at most zero but replay once.void
expectSameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect same method once or twice then once but replay each expectation only once.void
Expect twice by using invocation count.void
expectTwiceByUsingInvocationCountButReplayOnlyOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect twice by using invocation count but replay only once.void
Expect two or three times.void
Max times does not overwrite min times.void
Min times and max times out of order.void
ordered_maxTimesDoesNotOverwriteMinTimes
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered max times does not overwrite min times.void
Ordered min times and max times out of order.void
ordered_verifyAtLeastOnceAndReplayTwice
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify at least once and replay twice.void
ordered_verifyAtMostOnceButReplayTwice
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify at most once but replay twice.void
ordered_verifyAtMostTwiceAndReplayOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify at most twice and replay once.void
Ordered verify at most zero.void
Ordered verify at most zero but replay once.void
ordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify same method once or twice then once but replay each expectation only once.void
ordered_verifyTwiceByUsingInvocationCount
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify twice by using invocation count.void
ordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify twice by using invocation count but replay only once.void
Ordered verify two or three times.void
ordered_verifyZeroOrMoreTimesAndReplayNone
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify zero or more times and replay none.void
ordered_verifyZeroOrMoreTimesAndReplayTwice
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify zero or more times and replay twice.void
unordered_maxTimesDoesNotOverwriteMinTimes
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered max times does not overwrite min times.void
unordered_minTimesAndMaxTimesOutOfOrder
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered min times and max times out of order.void
unordered_verifyAtLeastOnceAndReplayTwice
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at least once and replay twice.void
unordered_verifyAtMostOnceButReplayTwice
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at most once but replay twice.void
unordered_verifyAtMostTwiceAndReplayOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at most twice and replay once.void
Unordered verify at most zero.void
unordered_verifyAtMostZeroButReplayOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at most zero but replay once.void
unordered_verifyOneOrMoreTimesAndReplayTwice
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify one or more times and replay twice.void
unordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify same method once or twice then once but replay each expectation only once.void
unordered_verifyTwiceByUsingInvocationCount
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify twice by using invocation count.void
unordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce
(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify twice by using invocation count but replay only once.void
Unordered verify two or three times.
-
Field Details
-
thrown
public final org.junit.rules.ExpectedException thrownThe thrown.
-
-
Constructor Details
-
InvocationBlocksWithTimesFieldsTest
public InvocationBlocksWithTimesFieldsTest()
-
-
Method Details
-
expectTwiceByUsingInvocationCount
public void expectTwiceByUsingInvocationCount(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect twice by using invocation count.- Parameters:
mock
- the mock
-
expectTwiceByUsingInvocationCountButReplayOnlyOnce
public void expectTwiceByUsingInvocationCountButReplayOnlyOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect twice by using invocation count but replay only once.- Parameters:
mock
- the mock
-
expectAtLeastOnceAndReplayTwice
public void expectAtLeastOnceAndReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect at least once and replay twice.- Parameters:
mock
- the mock
-
minTimesAndMaxTimesOutOfOrder
public void minTimesAndMaxTimesOutOfOrder(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Min times and max times out of order.- Parameters:
mock
- the mock
-
expectAtMostTwiceAndReplayOnce
public void expectAtMostTwiceAndReplayOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect at most twice and replay once.- Parameters:
mock
- the mock
-
expectAtMostOnceButReplayTwice
public void expectAtMostOnceButReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect at most once but replay twice.- Parameters:
mock
- the mock
-
expectAtMostZero
Expect at most zero.- Parameters:
mock
- the mock
-
expectAtMostZeroButReplayOnce
public void expectAtMostZeroButReplayOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect at most zero but replay once.- Parameters:
mock
- the mock
-
maxTimesDoesNotOverwriteMinTimes
public void maxTimesDoesNotOverwriteMinTimes(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Max times does not overwrite min times.- Parameters:
mock
- the mock
-
expectSameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce
public void expectSameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Expect same method once or twice then once but replay each expectation only once.- Parameters:
mock
- the mock
-
expectTwoOrThreeTimes
Expect two or three times.- Parameters:
mock
- the mock
-
ordered_verifyTwiceByUsingInvocationCount
public void ordered_verifyTwiceByUsingInvocationCount(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify twice by using invocation count.- Parameters:
mock
- the mock
-
ordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce
public void ordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify twice by using invocation count but replay only once.- Parameters:
mock
- the mock
-
ordered_verifyAtLeastOnceAndReplayTwice
public void ordered_verifyAtLeastOnceAndReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify at least once and replay twice.- Parameters:
mock
- the mock
-
ordered_minTimesAndMaxTimesOutOfOrder
public void ordered_minTimesAndMaxTimesOutOfOrder(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered min times and max times out of order.- Parameters:
mock
- the mock
-
ordered_verifyAtMostTwiceAndReplayOnce
public void ordered_verifyAtMostTwiceAndReplayOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify at most twice and replay once.- Parameters:
mock
- the mock
-
ordered_verifyAtMostOnceButReplayTwice
public void ordered_verifyAtMostOnceButReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify at most once but replay twice.- Parameters:
mock
- the mock
-
ordered_verifyAtMostZero
Ordered verify at most zero.- Parameters:
mock
- the mock
-
ordered_verifyAtMostZeroButReplayOnce
public void ordered_verifyAtMostZeroButReplayOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify at most zero but replay once.- Parameters:
mock
- the mock
-
ordered_maxTimesDoesNotOverwriteMinTimes
public void ordered_maxTimesDoesNotOverwriteMinTimes(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered max times does not overwrite min times.- Parameters:
mock
- the mock
-
ordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce
public void ordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify same method once or twice then once but replay each expectation only once.- Parameters:
mock
- the mock
-
ordered_verifyTwoOrThreeTimes
public void ordered_verifyTwoOrThreeTimes(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify two or three times.- Parameters:
mock
- the mock
-
ordered_verifyZeroOrMoreTimesAndReplayTwice
public void ordered_verifyZeroOrMoreTimesAndReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify zero or more times and replay twice.- Parameters:
mock
- the mock
-
ordered_verifyZeroOrMoreTimesAndReplayNone
public void ordered_verifyZeroOrMoreTimesAndReplayNone(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Ordered verify zero or more times and replay none.- Parameters:
mock
- the mock
-
unordered_verifyTwiceByUsingInvocationCount
public void unordered_verifyTwiceByUsingInvocationCount(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify twice by using invocation count.- Parameters:
mock
- the mock
-
unordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce
public void unordered_verifyTwiceByUsingInvocationCountButReplayOnlyOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify twice by using invocation count but replay only once.- Parameters:
mock
- the mock
-
unordered_verifyAtLeastOnceAndReplayTwice
public void unordered_verifyAtLeastOnceAndReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at least once and replay twice.- Parameters:
mock
- the mock
-
unordered_minTimesAndMaxTimesOutOfOrder
public void unordered_minTimesAndMaxTimesOutOfOrder(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered min times and max times out of order.- Parameters:
mock
- the mock
-
unordered_verifyAtMostTwiceAndReplayOnce
public void unordered_verifyAtMostTwiceAndReplayOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at most twice and replay once.- Parameters:
mock
- the mock
-
unordered_verifyAtMostOnceButReplayTwice
public void unordered_verifyAtMostOnceButReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at most once but replay twice.- Parameters:
mock
- the mock
-
unordered_verifyAtMostZero
public void unordered_verifyAtMostZero(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at most zero.- Parameters:
mock
- the mock
-
unordered_verifyAtMostZeroButReplayOnce
public void unordered_verifyAtMostZeroButReplayOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify at most zero but replay once.- Parameters:
mock
- the mock
-
unordered_maxTimesDoesNotOverwriteMinTimes
public void unordered_maxTimesDoesNotOverwriteMinTimes(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered max times does not overwrite min times.- Parameters:
mock
- the mock
-
unordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce
public void unordered_verifySameMethodOnceOrTwiceThenOnceButReplayEachExpectationOnlyOnce(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify same method once or twice then once but replay each expectation only once.- Parameters:
mock
- the mock
-
unordered_verifyTwoOrThreeTimes
public void unordered_verifyTwoOrThreeTimes(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify two or three times.- Parameters:
mock
- the mock
-
unordered_verifyOneOrMoreTimesAndReplayTwice
public void unordered_verifyOneOrMoreTimesAndReplayTwice(mockit.InvocationBlocksWithTimesFieldsTest.Collaborator mock) Unordered verify one or more times and replay twice.- Parameters:
mock
- the mock
-