|
55 | 55 | import org.zalando.sprocwrapper.example.ExampleDomainObjectWithSimpleTransformer; |
56 | 56 | import org.zalando.sprocwrapper.example.ExampleDomainObjectWithValidation; |
57 | 57 | import org.zalando.sprocwrapper.example.ExampleEnum; |
| 58 | +import org.zalando.sprocwrapper.example.ExampleEnumDomainObject; |
58 | 59 | import org.zalando.sprocwrapper.example.ExampleNamespacedSProcService; |
59 | 60 | import org.zalando.sprocwrapper.example.ExampleSProcService; |
60 | 61 | import org.zalando.sprocwrapper.example.ExampleValidationSProcService; |
@@ -1089,4 +1090,34 @@ public void testNullComplexParam() throws Exception { |
1089 | 1090 | public void testNullEnumParam() { |
1090 | 1091 | exampleSProcService.useEnumParam(null); |
1091 | 1092 | } |
| 1093 | + |
| 1094 | + @Test |
| 1095 | + public void testEnumListNoEntry() { |
| 1096 | + ExampleEnumDomainObject result = exampleSProcService.getExampleEnumDomainObject(1); |
| 1097 | + assertEquals(Lists.newArrayList(), result.getEnumArray()); |
| 1098 | + } |
| 1099 | + |
| 1100 | + @Test |
| 1101 | + public void testEnumListNullEntry() { |
| 1102 | + ExampleEnumDomainObject result = exampleSProcService.getExampleEnumDomainObject(2); |
| 1103 | + assertNull(result.getEnumArray()); |
| 1104 | + } |
| 1105 | + |
| 1106 | + @Test |
| 1107 | + public void testEnumListOneEntry() { |
| 1108 | + ExampleEnumDomainObject result = exampleSProcService.getExampleEnumDomainObject(3); |
| 1109 | + assertEquals(Lists.newArrayList(ExampleEnum.ENUM_CONST_2), result.getEnumArray()); |
| 1110 | + } |
| 1111 | + |
| 1112 | + @Test |
| 1113 | + public void testEnumListTwoEntries() { |
| 1114 | + ExampleEnumDomainObject result = exampleSProcService.getExampleEnumDomainObject(4); |
| 1115 | + assertEquals(Lists.newArrayList(ExampleEnum.ENUM_CONST_1, ExampleEnum.ENUM_CONST_2), result.getEnumArray()); |
| 1116 | + } |
| 1117 | + |
| 1118 | + @Test |
| 1119 | + public void testEnumListSet() { |
| 1120 | + List<ExampleEnumDomainObject> result = exampleSProcService.listExampleEnumDomainObjects(); |
| 1121 | + System.out.println(result); |
| 1122 | + } |
1092 | 1123 | } |
0 commit comments