File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
spring-ws-test/src/main/java/org/springframework/ws/test/client Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 31
31
*
32
32
* @author Arjen Poutsma
33
33
* @author Lukas Krecan
34
+ * @author Greg Turnquist
34
35
* @since 2.0
35
36
*/
36
- class MockWebServiceMessageSender implements WebServiceMessageSender {
37
+ public class MockWebServiceMessageSender implements WebServiceMessageSender {
37
38
38
39
private final List <MockSenderConnection > expectedConnections = new LinkedList <MockSenderConnection >();
39
40
@@ -78,4 +79,9 @@ void verifyConnections() {
78
79
}
79
80
}
80
81
82
+ void reset () {
83
+ expectedConnections .clear ();
84
+ connectionIterator = null ;
85
+ }
86
+
81
87
}
Original file line number Diff line number Diff line change 88
88
*
89
89
* @author Arjen Poutsma
90
90
* @author Lukas Krecan
91
+ * @author Greg Turnquist
91
92
* @since 2.0
92
93
*/
93
94
public class MockWebServiceServer {
@@ -165,15 +166,20 @@ public ResponseActions expect(RequestMatcher requestMatcher) {
165
166
}
166
167
167
168
/**
168
- * Verifies that all expectations were met.
169
+ * Verifies that all of the {@link MockWebServiceMessageSender}'s expectations were met.
169
170
*
170
171
* @throws AssertionError in case of unmet expectations
171
172
*/
172
173
public void verify () {
173
174
mockMessageSender .verifyConnections ();
174
175
}
175
176
176
-
177
+ /**
178
+ * Reset the {@link MockWebServiceMessageSender}'s expectations.
179
+ */
180
+ public void reset () {
181
+ mockMessageSender .reset ();
182
+ }
177
183
178
184
179
185
}
You can’t perform that action at this time.
0 commit comments