Skip to content

Commit

Permalink
thymeleaf-dependency corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
Oli B committed Jan 4, 2024
1 parent 5793726 commit 300f05e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
2 changes: 1 addition & 1 deletion service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
</dependency>
<dependency>
<groupId>org.thymeleaf</groupId>
<artifactId>thymeleaf-spring5</artifactId>
<artifactId>thymeleaf-spring6</artifactId>
</dependency>
<dependency>
<groupId>org.webjars</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,10 @@ void testSetUp() {
/**
* Baut die URL zusammen und ruft den Service als GET-Request auf.
*
* @param <T> Typ-Parameter
* @param path Context-Pfad der URL
* @param type Typ der erwarteten Antwort
* @param mediaTypes Content-Types
* @return Antwort des abgesendeten Requests
*/
protected <T> ResponseEntity<T> getResponseEntityFor(String path, Class<T> type, MediaType... mediaTypes) {
return exchangeResponseEntity(HttpMethod.GET, path, null, type, mediaTypes);
}

protected String getResponseStringFor(String path, MediaType... mediaTypes) throws Exception {
MvcResult mvcResult = mockMvc.perform(MockMvcRequestBuilders.get(path)
.headers(createHeaders(mediaTypes)))
Expand Down

0 comments on commit 300f05e

Please sign in to comment.