-
Notifications
You must be signed in to change notification settings - Fork 874
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
Conversation
@@ -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"); |
There was a problem hiding this comment.
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()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
This reverts commit 3a220bf.
@@ -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"); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no catalog.xml here : https://github.com/apache/incubator-netbeans/tree/master/autoupdate.services/test/unit/src/org/netbeans/api/autoupdate
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
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.
What needs to be done to complete this one? |
Merged it. |
Removed failing test UpdateUnitFactoryTest. This test depends on the test .nbm files that were removed at the time of donation.
Fixed failing test UpdateProviderFactoryCreateTest.