Bug 426471 - JSF Tests must stop using WorkspaceLock
Summary: JSF Tests must stop using WorkspaceLock
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Windows 7
: P3 blocker (vote)
Target Milestone: 3.6   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-23 10:51 EST by Carl Anderson CLA
Modified: 2017-12-19 13:25 EST (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 Carl Anderson CLA 2014-01-23 10:51:41 EST
In bug 311240, the platform removed the WorkspaceLock API.  It has been deprecated for a while.  The JSF JUnits still rely on this API.

Source File: org/eclipse/jst/jsf/test/util/junit4/RealWorkspaceContext.java
    1. ERROR: ImportNotFound

    The import org.eclipse.core.resources.WorkspaceLock cannot be resolved

    RealWorkspaceContext.java :

    59 : import org.eclipse.core.resources.WorkspaceLock;
    2. ERROR: UndefinedType

    WorkspaceLock cannot be resolved to a type

    RealWorkspaceContext.java :

    832 : public void setWorkspaceLock(final WorkspaceLock lock)
Source File: org/eclipse/jst/jsf/test/util/mock/MockWorkspace.java
    1. ERROR: ImportNotFound

    The import org.eclipse.core.resources.WorkspaceLock cannot be resolved

    MockWorkspace.java :

    29 : import org.eclipse.core.resources.WorkspaceLock;
    2. ERROR: UndefinedType

    WorkspaceLock cannot be resolved to a type

    MockWorkspace.java :

    316 : public void setWorkspaceLock(final WorkspaceLock lock)
Comment 1 Raghunathan Srinivasan CLA 2014-01-23 12:39:51 EST
We are reviewing options.
Comment 3 Eclipse Genie CLA 2017-12-18 20:17:32 EST
New Gerrit change created: https://git.eclipse.org/r/114319