Skip to content

Commit

Permalink
springboot 3.1.2 (#3)
Browse files Browse the repository at this point in the history
* wiremock 3 to fix NoClassDefFoundError: javax/servlet/DispatcherType

Signed-off-by: HARPER Jon <jon.harper87@gmail.com>
  • Loading branch information
jonenst authored Sep 22, 2023
1 parent 18e562f commit ba25392
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<parent>
<groupId>com.powsybl</groupId>
<artifactId>powsybl-parent-ws</artifactId>
<version>12</version>
<version>15</version>
<relativePath/>
</parent>

Expand Down Expand Up @@ -44,7 +44,7 @@
</developers>

<properties>
<gridsuite-dependencies.version>25</gridsuite-dependencies.version>
<gridsuite-dependencies.version>26</gridsuite-dependencies.version>
</properties>

<build>
Expand All @@ -71,8 +71,8 @@
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
<groupId>io.github.git-commit-id</groupId>
<artifactId>git-commit-id-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
Expand Down Expand Up @@ -110,7 +110,7 @@
</dependency>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>

<!-- Runtime dependencies -->
Expand Down Expand Up @@ -151,8 +151,8 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.tomakehurst</groupId>
<artifactId>wiremock-jre8</artifactId>
<groupId>org.wiremock</groupId>
<artifactId>wiremock</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public class CaseImportController {
@PostMapping(value = "/cases", consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = APPLICATION_JSON_VALUE)
@Operation(summary = "Import a case in the parametrized directory")
@ApiResponses(value = {@ApiResponse(responseCode = "200", description = "The case is imported"),
@ApiResponse(responseCode = "400", description = "Invalid case file"),
@ApiResponse(responseCode = "422", description = "File with wrong extension")})
@ApiResponse(responseCode = "400", description = "Invalid case file"),
@ApiResponse(responseCode = "422", description = "File with wrong extension")})
public ResponseEntity<Void> importCase(@Parameter(description = "case file") @RequestPart("caseFile") MultipartFile caseFile,
@RequestHeader("userId") String userId) {
caseImportService.importCaseInDirectory(caseFile, userId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ UUID importCase(MultipartFile multipartFile) {
return caseUuid;
}

private static CaseImportException wrapRemoteError(String response, HttpStatus statusCode) {
private static CaseImportException wrapRemoteError(String response, HttpStatusCode statusCode) {
if (!"".equals(response)) {
throw new CaseImportException(CaseImportException.Type.REMOTE_ERROR, response);
} else {
Expand Down

0 comments on commit ba25392

Please sign in to comment.