Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 5, 2025
1 parent 44b603c commit 1194074
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1129,14 +1129,14 @@ class <%= entityClass %>ResourceIT {
<%_ } _%>
<%_ if (reactive) { _%>
webTestClient.put().uri(ENTITY_API_URL_ID, <%= (dtoMapstruct ? restClass : 'updated' + persistClass) %>.<%= primaryKey.name %>)
webTestClient.put().uri(ENTITY_API_URL_ID, <%= (dtoMapstruct ? dtoInstance : 'updated' + persistClass) %>.<%= primaryKey.name %>)
.contentType(MediaType.APPLICATION_JSON)
.bodyValue(convertObjectToJsonBytes(<%= (dtoMapstruct ? dtoInstance : 'updated' + persistClass) %>))
.exchange()
.expectStatus().isOk
<%_ } else { _%>
rest<%= entityClass %>MockMvc.perform(
put(ENTITY_API_URL_ID, <%= (dtoMapstruct ? restClass : 'updated' + persistClass) %>.<%= primaryKey.name %>)<% if (authenticationUsesCsrf) { %>.with(csrf())<% }%>
put(ENTITY_API_URL_ID, <%= (dtoMapstruct ? dtoInstance : 'updated' + persistClass) %>.<%= primaryKey.name %>)<% if (authenticationUsesCsrf) { %>.with(csrf())<% }%>
.contentType(MediaType.APPLICATION_JSON)
.content(convertObjectToJsonBytes(<% if (dtoMapstruct) { %><%= dtoInstance %><% } else { %>updated<%= persistClass %><% } %>))
).andExpect(status().isOk)
Expand Down

0 comments on commit 1194074

Please sign in to comment.