Skip to content

Commit

Permalink
chore: fix code narc errors #1290
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronald Holshausen committed Feb 11, 2021
1 parent a19b38a commit 6f528c6
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,19 @@ import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam
import org.springframework.web.multipart.MultipartFile

@RunWith(RestPactRunner.class)
@Provider("Multipart-Service")
@PactFolder("pacts")
@RunWith(RestPactRunner)
@Provider('Multipart-Service')
@PactFolder('pacts')
@SuppressWarnings(['JUnitPublicField', 'PublicInstanceField'])
class MultiPartSpec {

@Controller
static class FormController {
@RequestMapping(value = "/api/form", method = RequestMethod.POST)
@RequestMapping(value = '/api/form', method = RequestMethod.POST)
ResponseEntity create(@RequestParam MultipartFile page001,
@RequestParam String entityId,
@RequestParam String entityType) throws Exception {
if (entityId == "99199292" && entityType == "TYPE" && page001.contentType == "image/png") {
if (entityId == '99199292' && entityType == 'TYPE' && page001.contentType == 'image/png') {
new ResponseEntity(HttpStatus.CREATED)
} else {
new ResponseEntity(HttpStatus.INTERNAL_SERVER_ERROR)
Expand Down

0 comments on commit 6f528c6

Please sign in to comment.