Skip to content

Commit

Permalink
fix: fixed not allowed pricing plan test
Browse files Browse the repository at this point in the history
  • Loading branch information
gianmarcoplutino committed Jan 16, 2025
1 parent 23c2aa0 commit b762b84
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -769,6 +769,9 @@ void onboardingPa_notAllowedPricingPlan(UniAsserter asserter) {
institutionBaseRequest.setOrigin(Origin.IPA);
request.setInstitution(institutionBaseRequest);
request.setPricingPlan("C1");
Billing billing = new Billing();
billing.setRecipientCode("recCode");
request.setBilling(billing);

mockPersistOnboarding(asserter);
mockVerifyAllowedMap(request.getInstitution().getTaxCode(), request.getProductId(), asserter);
Expand All @@ -780,6 +783,11 @@ void onboardingPa_notAllowedPricingPlan(UniAsserter asserter) {
mockSimpleProductValidAssert(request.getProductId(), false, asserter);
mockVerifyOnboardingNotFound();

UOResource uoResource = new UOResource();
uoResource.setCodiceFiscaleSfe("codSfe");
uoResource.setCodiceIpa("originId");
when(uoApi.findByUnicodeUsingGET1("recCode", null)).thenReturn(Uni.createFrom().item(uoResource));

InstitutionResource institutionResource = new InstitutionResource();
institutionResource.setDescription("TEST");
institutionResource.setDigitalAddress(DIGITAL_ADDRESS_FIELD);
Expand Down

0 comments on commit b762b84

Please sign in to comment.