|
|
|
@ -81,11 +81,9 @@ public class ParamUtilsTest {
|
|
|
|
|
public void testConvert() { |
|
|
|
|
|
|
|
|
|
//The expected value
|
|
|
|
|
String expected = "{\"global_param\":{\"direct\":\"IN\",\"prop\":\"global_param\",\"type\":\"VARCHAR\",\"value\":\"20191229\"},\"local_param\":{\"direct\":\"IN\",\"prop\":\"local_param\",\"type\":\"VARCHAR\",\"value\":\"20191229\"}}"; |
|
|
|
|
|
|
|
|
|
String expected = "{\"global_param\":{\"prop\":\"global_param\",\"direct\":\"IN\",\"type\":\"VARCHAR\",\"value\":\"20191229\"},\"local_param\":{\"prop\":\"local_param\",\"direct\":\"IN\",\"type\":\"VARCHAR\",\"value\":\"20191229\"}}"; |
|
|
|
|
//The expected value when globalParams is null but localParams is not null
|
|
|
|
|
String expected1 = "{\"local_param\":{\"direct\":\"IN\",\"prop\":\"local_param\",\"type\":\"VARCHAR\",\"value\":\"20191229\"}}"; |
|
|
|
|
|
|
|
|
|
String expected1 = "{\"local_param\":{\"prop\":\"local_param\",\"direct\":\"IN\",\"type\":\"VARCHAR\",\"value\":\"20191229\"}}"; |
|
|
|
|
//Define expected date , the month is 0-base
|
|
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
|
calendar.set(2019,11,30); |
|
|
|
|