|
1 | 1 | package de.zalando.sprocwrapper;
|
2 | 2 |
|
3 |
| -import static org.junit.Assert.assertEquals; |
4 |
| -import static org.junit.Assert.assertFalse; |
5 |
| -import static org.junit.Assert.assertNotNull; |
6 |
| -import static org.junit.Assert.assertNull; |
7 |
| -import static org.junit.Assert.assertTrue; |
8 |
| - |
9 | 3 | import java.math.BigDecimal;
|
10 |
| - |
11 | 4 | import java.sql.Connection;
|
12 | 5 | import java.sql.ResultSet;
|
13 | 6 | import java.sql.SQLException;
|
14 | 7 | import java.sql.Statement;
|
15 | 8 | import java.sql.Timestamp;
|
16 |
| - |
17 | 9 | import java.text.SimpleDateFormat;
|
18 |
| - |
19 | 10 | import java.util.ArrayList;
|
20 | 11 | import java.util.Arrays;
|
21 | 12 | import java.util.Collections;
|
22 | 13 | import java.util.Date;
|
23 | 14 | import java.util.HashMap;
|
24 | 15 | import java.util.List;
|
25 |
| - |
26 | 16 | import javax.sql.DataSource;
|
27 |
| - |
28 | 17 | import javax.validation.ConstraintViolationException;
|
29 | 18 |
|
| 19 | +import com.google.common.collect.Lists; |
| 20 | +import com.google.common.collect.Sets; |
30 | 21 | import org.joda.time.DateTime;
|
31 |
| - |
32 | 22 | import org.junit.Assert;
|
33 | 23 | import org.junit.Ignore;
|
34 | 24 | import org.junit.Test;
|
35 |
| - |
36 | 25 | import org.junit.runner.RunWith;
|
37 |
| - |
38 | 26 | import org.springframework.beans.factory.annotation.Autowired;
|
39 | 27 | import org.springframework.beans.factory.annotation.Qualifier;
|
40 |
| - |
41 | 28 | import org.springframework.jdbc.core.JdbcTemplate;
|
42 |
| - |
43 | 29 | import org.springframework.test.context.ContextConfiguration;
|
44 | 30 | import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
|
| 31 | +import static org.junit.Assert.assertEquals; |
| 32 | +import static org.junit.Assert.assertFalse; |
| 33 | +import static org.junit.Assert.assertNotNull; |
| 34 | +import static org.junit.Assert.assertNull; |
| 35 | +import static org.junit.Assert.assertTrue; |
45 | 36 |
|
46 |
| -import com.google.common.collect.Lists; |
47 |
| -import com.google.common.collect.Sets; |
48 | 37 |
|
49 | 38 | import de.zalando.sprocwrapper.example.AddressPojo;
|
50 | 39 | import de.zalando.sprocwrapper.example.Example1DomainObject1;
|
|
77 | 66 | import de.zalando.sprocwrapper.example.TestInheritanceChild;
|
78 | 67 | import de.zalando.sprocwrapper.example.WrapperLookupSchema;
|
79 | 68 | import de.zalando.sprocwrapper.example.WrapperOptionalLookupType;
|
80 |
| - |
81 | 69 | import de.zalando.typemapper.parser.DateTimeUtil;
|
82 | 70 |
|
83 | 71 | @RunWith(SpringJUnit4ClassRunner.class)
|
@@ -1088,4 +1076,14 @@ public void testSQLUpdate() {
|
1088 | 1076 | assertTrue(l1.size() == 1);
|
1089 | 1077 | assertTrue(l2.size() == 0);
|
1090 | 1078 | }
|
| 1079 | + |
| 1080 | + @Test |
| 1081 | + public void testNullComplexParam() throws Exception { |
| 1082 | + exampleSProcService.createOrder(null); |
| 1083 | + } |
| 1084 | + |
| 1085 | + @Test |
| 1086 | + public void testNullEnumParam() { |
| 1087 | + exampleSProcService.useEnumParam(null); |
| 1088 | + } |
1091 | 1089 | }
|
0 commit comments