|
1 |
| package com.agical.rmock.core.expectation; |
|
2 |
| |
|
3 |
| import com.agical.rmock.core.Section; |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| public class ExpectationEventSourceImpl implements ExpectationEventSource { |
|
11 |
| |
|
12 |
| private ExpectationListener expectationListener; |
|
13 |
| |
|
14 |
1
| public ExpectationEventSourceImpl() {
|
|
15 |
1
| super();
|
|
16 |
| } |
|
17 |
| |
|
18 |
1
| public void setExpectationListener(ExpectationListener expectationListener) {
|
|
19 |
1
| this.expectationListener = expectationListener;
|
|
20 |
| } |
|
21 |
| |
|
22 |
1
| public void expectationsRecorded(Section rootSection) {
|
|
23 |
1
| expectationListener.expectationsRecorded( rootSection );
|
|
24 |
| } |
|
25 |
| |
|
26 |
| } |