DATACMNS-840 - ReturnedType's need for custom construction no includes availability of input properties.

The indicator of whether custom construction is needed for a class based return type now includes whether input properties are available in the first place.
This commit is contained in:
Oliver Gierke
2016-04-08 18:50:57 +02:00
parent 5cfed9e003
commit 3ff31e5f89
2 changed files with 2 additions and 1 deletions

View File

@@ -139,6 +139,7 @@ public class ReturnedTypeUnitTests {
ReturnedType type = getReturnedType("dtoWithMultipleConstructors");
assertThat(type.getInputProperties(), is(empty()));
assertThat(type.needsCustomConstruction(), is(false));
}
private static ReturnedType getReturnedType(String methodName, Class<?>... parameters) throws Exception {