|
1 |
| package com.agical.rmock.core.strategy.impl; |
|
2 |
| |
|
3 |
| import com.agical.rmock.core.Verifiable; |
|
4 |
| import com.agical.rmock.core.expectation.ExpectationsState; |
|
5 |
| import com.agical.rmock.core.strategy.TestStep; |
|
6 |
| |
|
7 |
| public class BeginVerifyStep implements TestStep { |
|
8 |
| |
|
9 |
| private Verifiable verifiable; |
|
10 |
| private ExpectationsState expectationState; |
|
11 |
| |
|
12 |
523
| public void run() throws Throwable {
|
|
13 |
523
| if(!expectationState.isInVerifyState()) {
|
|
14 |
122
| verifiable.beginVerify();
|
|
15 |
| } |
|
16 |
| } |
|
17 |
| |
|
18 |
2173
| public void setVerifiable(Verifiable verifiable) {
|
|
19 |
2173
| this.verifiable = verifiable;
|
|
20 |
| } |
|
21 |
| |
|
22 |
1351
| public void setExpectationState(ExpectationsState expectationState) {
|
|
23 |
1351
| this.expectationState = expectationState;
|
|
24 |
| } |
|
25 |
| } |