test: ValidExchangeRequestValidatorTest test cases
This commit is contained in:
parent
ca2a6c1795
commit
8d722e3ce4
2 changed files with 70 additions and 9 deletions
|
@ -2,6 +2,7 @@ package eu.ztsh.wymiana;
|
|||
|
||||
import eu.ztsh.wymiana.data.entity.CurrencyEntity;
|
||||
import eu.ztsh.wymiana.data.entity.UserEntity;
|
||||
import eu.ztsh.wymiana.web.model.CurrencyExchangeRequest;
|
||||
import eu.ztsh.wymiana.web.model.UserCreateRequest;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
@ -16,6 +17,12 @@ public class EntityCreator {
|
|||
public static String NAME = "Janina";
|
||||
public static String SURNAME = "Kowalska";
|
||||
public static double PLN = 20.10;
|
||||
public static double USD_SELL = 5.18;
|
||||
public static double USD_BUY = 5.08;
|
||||
public static String PLN_SYMBOL = "PLN";
|
||||
public static String USD_SYMBOL = "USD";
|
||||
public static double BUY_RATE = 3.8804;
|
||||
public static double SELL_RATE = 3.9572;
|
||||
|
||||
}
|
||||
|
||||
|
@ -30,6 +37,11 @@ public class EntityCreator {
|
|||
.pln(Constants.PLN);
|
||||
}
|
||||
|
||||
public static CurrencyExchangeRequest.CurrencyExchangeRequestBuilder exchangeRequest() {
|
||||
return CurrencyExchangeRequest.builder().pesel(Constants.PESEL);
|
||||
}
|
||||
|
||||
|
||||
public static class UserEntityBuilder {
|
||||
|
||||
String name;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue