Skip to content

Commit 50599cc

Browse files
authored
Merge pull request #14 from ungaratto93/develop
Develop
2 parents f3b844b + ea9e54a commit 50599cc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/br/com/ungaratto93/fx/ui/FiatExchangeController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class FiatExchangeController {
2020

2121
@Description("Retorna o valor obtido apos o calculo de cambio")
2222
@PostMapping("/exchanges")
23-
public ResponseEntity<FiatOutputData> get(@RequestBody FiatInputData fiatInputData) throws WiseRateServiceException {
23+
public ResponseEntity<FiatOutputData> post(@RequestBody FiatInputData fiatInputData) throws WiseRateServiceException {
2424
var data = fiatExchangeUsecase.exec(fiatInputData);
2525
return ResponseEntity.ok(data);
2626
}

src/test/java/br/com/ungaratto93/fx/integrate/ui/FiatExchangeControllerTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class FiatExchangeControllerTest {
2323
@Test
2424
void shouldReturnFiatValueConvertedWhenRequestWithValidCurrenciesAndAmount() throws WiseRateServiceException {
2525

26-
final var fiatOutputDataResponseEntity = controller.get(
26+
final var fiatOutputDataResponseEntity = controller.post(
2727
new FiatInputData(Symbol.USD, Symbol.BRL, 2.00)
2828
);
2929

0 commit comments

Comments
 (0)