Bug 19304 - Test: New refreshLocal test
Summary: Test: New refreshLocal test
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 2.0 F3   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords: test
Depends on:
Blocks:
 
Reported: 2002-06-05 09:19 EDT by DJ Houghton CLA
Modified: 2002-06-05 10:29 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2002-06-05 09:19:02 EDT
We need to ensure that we have a test in the following scenerio:

- create folder structure on disk
- create IFile handle to leaf child which exists on disk but not in workspace
- (ensure parent' doesn't exist in workspace either)
- refresh the child
- IResource.refreshLocal says that if a resource is discovered on disk then 
all the parents are created in the workspace tree
Comment 1 DJ Houghton CLA 2002-06-05 09:19:58 EDT
John, please create this test case (or check to see if we already have one) 
for this test pass. Thanks.

See related bug 18969.
Comment 2 John Arthorne CLA 2002-06-05 10:29:40 EDT
Added RefreshLocalTest#testFileDiscovery to test this exact case.  Test passes.  
Of course this won't work if the resource's project doesn't exist, since we 
don't "discover" projects on disk.  The javadoc isn't clear on that point.