@@ -83,7 +83,7 @@ protected PactDslRequestBase queryMatchingDateBase(String field, String pattern,
83
83
if (StringUtils .isNotEmpty (example )) {
84
84
query .put (field , Collections .singletonList (example ));
85
85
} else {
86
- requestGenerators .addGenerator (Category .BODY , field , new DateGenerator (pattern , null ));
86
+ requestGenerators .addGenerator (Category .QUERY , field , new DateGenerator (pattern , null ));
87
87
FastDateFormat instance = FastDateFormat .getInstance (pattern );
88
88
query .put (field , Collections .singletonList (instance .format (new Date (DATE_2000 ))));
89
89
}
@@ -95,7 +95,7 @@ protected PactDslRequestBase queryMatchingTimeBase(String field, String pattern,
95
95
if (StringUtils .isNotEmpty (example )) {
96
96
query .put (field , Collections .singletonList (example ));
97
97
} else {
98
- requestGenerators .addGenerator (Category .BODY , field , new TimeGenerator (pattern , null ));
98
+ requestGenerators .addGenerator (Category .QUERY , field , new TimeGenerator (pattern , null ));
99
99
FastDateFormat instance = FastDateFormat .getInstance (pattern );
100
100
query .put (field , Collections .singletonList (instance .format (new Date (DATE_2000 ))));
101
101
}
@@ -107,7 +107,7 @@ protected PactDslRequestBase queryMatchingDatetimeBase(String field, String patt
107
107
if (StringUtils .isNotEmpty (example )) {
108
108
query .put (field , Collections .singletonList (example ));
109
109
} else {
110
- requestGenerators .addGenerator (Category .BODY , field , new DateTimeGenerator (pattern , null ));
110
+ requestGenerators .addGenerator (Category .QUERY , field , new DateTimeGenerator (pattern , null ));
111
111
FastDateFormat instance = FastDateFormat .getInstance (pattern );
112
112
query .put (field , Collections .singletonList (instance .format (new Date (DATE_2000 ))));
113
113
}
0 commit comments