Fix for PMC_approved https://bugs.eclipse.org/bugs/show_bug.cgi?id=314145
diff --git a/jsf/tests/org.eclipse.jst.jsf.designtime.tests/src/org/eclipse/jst/jsf/designtime/tests/resources/TestWorkspaceBasedResourceLocator.java b/jsf/tests/org.eclipse.jst.jsf.designtime.tests/src/org/eclipse/jst/jsf/designtime/tests/resources/TestWorkspaceBasedResourceLocator.java
index 192a600..9252809 100644
--- a/jsf/tests/org.eclipse.jst.jsf.designtime.tests/src/org/eclipse/jst/jsf/designtime/tests/resources/TestWorkspaceBasedResourceLocator.java
+++ b/jsf/tests/org.eclipse.jst.jsf.designtime.tests/src/org/eclipse/jst/jsf/designtime/tests/resources/TestWorkspaceBasedResourceLocator.java
@@ -252,7 +252,7 @@
                 assertEquals(Type.RESOURCE, event.getOldValue().getType());
                 final IWorkspaceJSFResourceFragment oldValue = (IWorkspaceJSFResourceFragment) event
                         .getOldValue();
-                final IResource resource = ((IWorkspaceJSFResourceFragment) oldValue)
+                final IResource resource = (oldValue)
                         .getResource();
                 assertEquals(IResource.FILE, resource.getType());
                 assertEquals("tag1.xhtml", resource.getName());
@@ -319,11 +319,11 @@
         // simulate adding a sub-folder
         _changeTester.fireResourceFolderAdd("ezcomp");
         _changeTester.assertNumEvents(1);
-        List<JSFResourceChangedEvent> events = _changeTester
+        final List<JSFResourceChangedEvent> events = _changeTester
                 .getEvent(CHANGE_TYPE.ADDED);
         assertEquals(1, events.size());
-        JSFResourceChangedEvent event = events.get(0);
-        ResourceFragmentIdentifier id = event.getNewValue().getId();
+        final JSFResourceChangedEvent event = events.get(0);
+        final ResourceFragmentIdentifier id = event.getNewValue().getId();
         assertTrue(event.getNewValue().getType() == Type.CONTAINER);
         assertEquals("ezcomp", id.getLibraryName());
     }
@@ -380,10 +380,10 @@
         _changeTester.fireResourceFileDeleteRecusive("");
         final int expectedEvents = 3;
         _changeTester.assertNumEvents(expectedEvents);
-        List<JSFResourceChangedEvent> events = _changeTester
+        final List<JSFResourceChangedEvent> events = _changeTester
                 .getEvent(CHANGE_TYPE.REMOVED);
         assertEquals(expectedEvents, events.size());
-        Set<String> ids = new HashSet<String>();
+        final Set<String> ids = new HashSet<String>();
         for (final JSFResourceChangedEvent event : events)
         {
             ids.add(event.getOldValue().getId().toString());
@@ -394,6 +394,18 @@
         assertEquals(expectedEvents, ids.size());
     }
 
+    @Test
+    @BugRegressionTest(bugNumber = 314145)
+    public void testRenameFileInRootFolder()
+    {
+        _locator.start(_project);
+        assertEquals(1, _context.getWorkspace().getListeners().size());
+        _changeTester.fireResourceFileRename("../t11.jsp", "../t11.jspx");
+        // the workspace resource locator shouldn't care if something outside
+        // the resources sub-dir changes.
+        _changeTester.assertNumEvents(0);
+    }
+
     private IJSFResourceFragment findById(
             final WorkspaceJSFResourceLocator locator, final String id)
             throws InvalidIdentifierException