Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

Commit

Permalink
Rename and cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
vadeg committed Mar 2, 2021
1 parent 7991eca commit 4253a32
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public class AccessTokenBuilderTest {

private static final String CREDENTIALS_DIR = "CREDENTIALS_DIR";
private static final String HTTP_EXAMPLE_ORG = "http://example.org";
private URI uri = URI.create(HTTP_EXAMPLE_ORG);
private ClientCredentialsProvider ccp = Mockito.mock(ClientCredentialsProvider.class);
private UserCredentialsProvider ucp = Mockito.mock(UserCredentialsProvider.class);
private HttpProviderFactory hpf = Mockito.mock(HttpProviderFactory.class);
private final URI uri = URI.create(HTTP_EXAMPLE_ORG);
private final ClientCredentialsProvider ccp = Mockito.mock(ClientCredentialsProvider.class);
private final UserCredentialsProvider ucp = Mockito.mock(UserCredentialsProvider.class);
private final HttpProviderFactory hpf = Mockito.mock(HttpProviderFactory.class);

@Rule
public TemporaryFolder tempFolder = new TemporaryFolder();
Expand Down Expand Up @@ -97,7 +97,7 @@ public void shouldItBePossibleToGetTokensWithoutScopesDefined() {
}

@Test
public void buildAccessTokensWithDefault() throws IOException {
public void buildAccessTokensWithDefault() {

AccessTokens accessTokens = Tokens.createAccessTokensWithUri(uri).manageToken("TOKEN_1").done().start();

Expand Down Expand Up @@ -158,7 +158,7 @@ public void notAnUri_OAUTH2_ACCESS_TOKEN_URL() {
}

@Test
public void usinEnvCreatesBuilder() throws Exception {
public void usingEnvCreatesBuilder() throws Exception {
AccessTokensBuilder builder = withEnvironmentVariable("OAUTH2_ACCESS_TOKEN_URL", "https://somwhere.test/tokens")
.execute(Tokens::createAccessTokens);
Assertions.assertThat(builder).isNotNull();
Expand Down

0 comments on commit 4253a32

Please sign in to comment.