File tree Expand file tree Collapse file tree
src/test/java/com/unzer/payment/integration/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121
2222import java .math .BigDecimal ;
2323import java .util .Date ;
24+ import java .util .EnumMap ;
2425import java .util .HashMap ;
2526import java .util .stream .Stream ;
2627
@@ -220,7 +221,7 @@ public static Stream<Arguments> getPaymentMethodsConfigs() {
220221 withMixedWeroConfig .put ("cards" , enabledConfig );
221222 withMixedWeroConfig .put ("wero" , weroConfig1 );
222223
223- HashMap <PaypageV2 .MethodName , PaymentMethodConfig > withEnumMethodNames = new HashMap <>();
224+ EnumMap <PaypageV2 .MethodName , PaymentMethodConfig > withEnumMethodNames = new EnumMap <>(PaypageV2 . MethodName . class );
224225 withEnumMethodNames .put (PaypageV2 .MethodName .CARDS , enabledConfig );
225226 withEnumMethodNames .put (PaypageV2 .MethodName .PAYPAL , enabledConfig );
226227 withEnumMethodNames .put (PaypageV2 .MethodName .PAYLATER_INSTALLMENT , enabledConfig );
You can’t perform that action at this time.
0 commit comments