File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
src/main/java/ewc/utilities/testableio/core Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 25
25
<dependency >
26
26
<groupId >org.projectlombok</groupId >
27
27
<artifactId >lombok</artifactId >
28
- </dependency >
29
- <dependency >
30
- <groupId >com.jcabi</groupId >
31
- <artifactId >jcabi-matchers</artifactId >
32
- <scope >test</scope >
28
+ <scope >compile</scope >
33
29
</dependency >
34
30
<dependency >
35
31
<groupId >org.assertj</groupId >
Original file line number Diff line number Diff line change @@ -83,4 +83,15 @@ public String clientId() {
83
83
public String queryId () {
84
84
return this .query .apply (this );
85
85
}
86
+
87
+ /**
88
+ * Returns the request in the form that is required by the outside system and the real adapter.
89
+ *
90
+ * @param transformer Function that transform the generic request into the real request.
91
+ * @param <R> The type of the real request.
92
+ * @return The real request object, i.e. {@code HttpRequestEntity}.
93
+ */
94
+ public <R > R realRequest (final Function <GenericRequest <T >, R > transformer ) {
95
+ return transformer .apply (this );
96
+ }
86
97
}
You can’t perform that action at this time.
0 commit comments