DATACMNS-1552 - Test case to verify Option values are returned as is.
Make sure that the fix for DATACMNS-1524 fixes this ticket as well. A bit of whitespace in QueryExecutionResultHandler.
This commit is contained in:
@@ -405,6 +405,14 @@ public class QueryExecutionResultHandlerUnitTests {
|
||||
});
|
||||
}
|
||||
|
||||
@Test // DATACMNS-1552
|
||||
public void keepsVavrOptionType() throws Exception {
|
||||
|
||||
Option<Entity> source = Option.of(new Entity());
|
||||
|
||||
assertThat(handler.postProcessInvocationResult(source, getMethod("option"))).isSameAs(source);
|
||||
}
|
||||
|
||||
private static Method getMethod(String methodName) throws Exception {
|
||||
return Sample.class.getMethod(methodName);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user