Skip to content

Commit

Permalink
Corrected test case implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniotarricone committed Jan 7, 2025
1 parent e59f9c8 commit 065c3dd
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,10 @@

import io.quarkus.test.InjectMock;
import io.quarkus.test.junit.QuarkusTest;
import io.smallrye.mutiny.Uni;
import io.smallrye.mutiny.helpers.test.UniAssertSubscriber;
import it.pagopa.swclient.mil.auth.AuthErrorCode;
import it.pagopa.swclient.mil.auth.bean.ClaimName;
import it.pagopa.swclient.mil.auth.bean.GetAccessTokenRequest;
import it.pagopa.swclient.mil.auth.bean.GetAccessTokenResponse;
import it.pagopa.swclient.mil.auth.bean.GrantType;
import it.pagopa.swclient.mil.auth.bean.Scope;
import it.pagopa.swclient.mil.auth.dao.ClientEntity;
Expand Down Expand Up @@ -348,9 +346,7 @@ void given_refreshCookieAndRefreshTokenBothNull_when_tokesRefreshIsRequested_the
.setMerchantId("merchant_id")
.setTerminalId("terminal_id");

Uni<GetAccessTokenResponse> resp = refreshTokensService.process(request);

assertThrows(NullPointerException.class, resp::await);
assertThrows(NullPointerException.class, () -> refreshTokensService.process(request));
}

/**
Expand Down

0 comments on commit 065c3dd

Please sign in to comment.