File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
main/java/io/dapr/client/domain
test/java/io/dapr/client/domain Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,10 @@ public final class HttpExtension {
4747 * Convenience HttpExtension object for the {@link DaprHttp.HttpMethods#DELETE} Verb with empty queryString.
4848 */
4949 public static final HttpExtension DELETE = new HttpExtension (DaprHttp .HttpMethods .DELETE );
50+ /**
51+ * Convenience HttpExtension object for the {@link DaprHttp.HttpMethods#PATCH} Verb with empty queryString.
52+ */
53+ public static final HttpExtension PATCH = new HttpExtension (DaprHttp .HttpMethods .PATCH );
5054 /**
5155 * Convenience HttpExtension object for the {@link DaprHttp.HttpMethods#HEAD} Verb with empty queryString.
5256 */
Original file line number Diff line number Diff line change @@ -57,4 +57,12 @@ void shouldEncodeQueryParamWithSpacesAndSpecialCharacters() {
5757 Assertions .assertEquals ("user+name=John+Do%C3%AB+%26+Co." , encoded );
5858 }
5959
60+ @ Test
61+ @ DisplayName ("PATCH constant should use PATCH HTTP method" )
62+ void patchConstantShouldUsePatchHttpMethod () {
63+ Assertions .assertEquals (DaprHttp .HttpMethods .PATCH , HttpExtension .PATCH .getMethod ());
64+ Assertions .assertTrue (HttpExtension .PATCH .getQueryParams ().isEmpty ());
65+ Assertions .assertTrue (HttpExtension .PATCH .getHeaders ().isEmpty ());
66+ }
67+
6068}
You can’t perform that action at this time.
0 commit comments