Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken unit tests on CI machine #370

Merged
merged 6 commits into from
Jun 27, 2013
Merged

Fix broken unit tests on CI machine #370

merged 6 commits into from
Jun 27, 2013

Conversation

gcheng
Copy link

@gcheng gcheng commented Jun 27, 2013

No description provided.

Albert Cheng added 5 commits June 26, 2013 11:19
"Endpoint=sb://%1$s.servicebus.windows.net/;StsEndpoint=https://%1$s%4$s;SharedSecretIssuer=%2$s;SharedSecretValue=%3$s",
ns, issuer, secret, stsEndpoint);
return String
.format("Endpoint=sb://%1$s.servicebus.windows.net/;StsEndpoint=https://%1$s%4$s;SharedSecretIssuer=%2$s;SharedSecretValue=%3$s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: should the .format be on same line with String?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was auto-formated by Eclipse, I guess when the line is long enough, Eclipse will try to put it into two lines. Even if I change it back, next time we click save, it will be changed into two line format :(

@ogail
Copy link
Contributor

ogail commented Jun 27, 2013

LGTM

assertEquals(message + " id", id, mediaProcessorInfo.getId());
assertEquals(message + " name", name, mediaProcessorInfo.getName());
assertEquals(message + " description", description, mediaProcessorInfo.getDescription());
assertEquals(message + " sku", sku, mediaProcessorInfo.getSku());
assertEquals(message + " vendor", vendor, mediaProcessorInfo.getVendor());
assertEquals(message + " version", version, mediaProcessorInfo.getVersion());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is media services no longer returning version numbers, or is it that they're churning too quickly to keep the test working?

If they change a lot, it might be worth having an assertNotNull on the getVersion call to make sure you got something, even if we can't control/predict what the actual value will be.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a good idea to make some validation, I will add a little bit logic to ensure the length of the version element is greater than 0.

gcheng pushed a commit that referenced this pull request Jun 27, 2013
Fix broken unit tests on CI machine
@gcheng gcheng merged commit a17cd2c into Azure:release Jun 27, 2013
jianghaolu pushed a commit to jianghaolu/azure-sdk-for-java that referenced this pull request Apr 5, 2017
Fix broken unit tests on CI machine
sima-zhu pushed a commit to sima-zhu/azure-sdk-for-java that referenced this pull request Mar 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants