@Test public void testDefaultConstructor() { CredentialsProvider provider = mockProvider(new EnvironmentVariableCredentialsProvider()); assert provider.getCredentials().isEqualTo(new Credentials(userName, userPassword)); }
@Override public Credentials getCredentials() { return credentials; }
EnvironmentVariableCredentialsProvider implements CredentialsProvider { @Override public Credentials getCredentials() { return credentials; } }
EnvironmentVariableCredentialsProvider implements CredentialsProvider { @Override public Credentials getCredentials() { return credentials; } EnvironmentVariableCredentialsProvider();  EnvironmentVariableCredentialsProvider(String usernameKey, String passwordKey); }
EnvironmentVariableCredentialsProvider implements CredentialsProvider { @Override public Credentials getCredentials() { return credentials; } EnvironmentVariableCredentialsProvider();  EnvironmentVariableCredentialsProvider(String usernameKey, String passwordKey); @Override Credentials getCredentials(); @Override CredentialsProvider refresh(); }
EnvironmentVariableCredentialsProvider implements CredentialsProvider { @Override public Credentials getCredentials() { return credentials; } EnvironmentVariableCredentialsProvider();  EnvironmentVariableCredentialsProvider(String usernameKey, String passwordKey); @Override Credentials getCredentials(); @Override CredentialsProvider refresh();  }