Skip to content

Commit

Permalink
Merge pull request #233 from christav/dev
Browse files Browse the repository at this point in the history
Fix test contamination
  • Loading branch information
Chris Tavares committed Feb 8, 2013
2 parents 3fc489f + 9cc5440 commit 79f2e3e
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,12 @@ public class WrapTokenManagerIntegrationTest {
@Test
public void wrapClientWillAcquireAccessToken() throws Exception {
// Arrange
Configuration config = Configuration.getInstance();
overrideWithEnv(config, ServiceBusConfiguration.URI);
overrideWithEnv(config, ServiceBusConfiguration.WRAP_URI);
overrideWithEnv(config, ServiceBusConfiguration.WRAP_NAME);
overrideWithEnv(config, ServiceBusConfiguration.WRAP_PASSWORD);
Configuration config = Configuration.load();
overrideWithEnv(config, ServiceBusConfiguration.CONNECTION_STRING);
WrapTokenManager client = config.create(WrapTokenManager.class);

ServiceBusConnectionSettings settings = config.create(ServiceBusConnectionSettings.class);
// Act
URI serviceBusURI = new URI((String) config.getProperty(ServiceBusConfiguration.URI));
URI serviceBusURI = new URI(settings.getUri());
String accessToken = client.getAccessToken(serviceBusURI);

// Assert
Expand Down

0 comments on commit 79f2e3e

Please sign in to comment.