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

Testcases related fixes #44

Merged
merged 4 commits into from
Oct 19, 2017
Merged

Conversation

rtaneja1
Copy link
Contributor

@rtaneja1 rtaneja1 commented Oct 3, 2017

Removed failing test UpdateUnitFactoryTest. This test depends on the test .nbm files that were removed at the time of donation.
Fixed failing test UpdateProviderFactoryCreateTest.

@@ -50,7 +50,7 @@ protected void tearDown () throws Exception {
public void testCreate () throws Exception {
String name = "new-one";
String displayName = "Newone";
URL url = UpdateUnitFactoryTest.class.getResource ("data/catalog.xml");
URL url = CatalogCacheTest.class.getResource ("data/catalog.xml");
Copy link
Member

Choose a reason for hiding this comment

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

Why not use UpdateProviderFactoryCreateTest.class here? Or even getClass().getResource() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -50,7 +49,7 @@ protected void tearDown () throws Exception {
public void testCreate () throws Exception {
String name = "new-one";
String displayName = "Newone";
URL url = UpdateUnitFactoryTest.class.getResource ("data/catalog.xml");
URL url = getClass().getResource ("/org/netbeans/modules/autoupdate/updateprovider/data/catalog.xml");
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't the relative path data/catalog.xml work anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no data/catalog.xml in above location

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you please approve this?

Copy link
Member

Choose a reason for hiding this comment

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

I didn't know you were waiting for me. Sure, it looks good!

Copy link
Member

Choose a reason for hiding this comment

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

OK, will merge this one.

@geertjanw
Copy link
Member

What needs to be done to complete this one?

@geertjanw geertjanw merged commit fcd4223 into apache:master Oct 19, 2017
@geertjanw
Copy link
Member

Merged it.

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