Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 59192 Details for
Bug 174348
[classpath] Classpath validation messages are non-standard
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Updated regression tests
patch_174348_tests.txt (text/plain), 2.80 KB, created by
Olivier Thomann
on 2007-02-16 15:14:43 EST
(
hide
)
Description:
Updated regression tests
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2007-02-16 15:14:43 EST
Size:
2.80 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java,v >retrieving revision 1.44 >diff -u -r1.44 ClasspathInitializerTests.java >--- src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java 31 Jan 2007 18:29:31 -0000 1.44 >+++ src/org/eclipse/jdt/core/tests/model/ClasspathInitializerTests.java 16 Feb 2007 20:13:49 -0000 >@@ -1108,7 +1108,7 @@ > createFile("/P1/lib.jar", ""); > IClasspathEntry variable = JavaCore.newVariableEntry(new Path("TEST_DEPRECATED"), null, null); > IJavaModelStatus status = JavaConventions.validateClasspathEntry(project, variable, false); >- assertStatus("Classpath variable 'TEST_DEPRECATED' in project P1 is deprecated: 'Test deprecated flag'", status); >+ assertStatus("Classpath variable 'TEST_DEPRECATED' in project 'P1' is deprecated: Test deprecated flag", status); > assertFalse("Status should not be OK", status.isOK()); > assertEquals("Status should have WARNING severity", IStatus.WARNING, status.getSeverity()); > assertEquals("Status should have deprecated code", IJavaModelStatusConstants.DEPRECATED_VARIABLE, status.getCode()); >@@ -1187,7 +1187,7 @@ > createFile("/P1/lib.jar", ""); > IClasspathEntry variable = JavaCore.newVariableEntry(new Path("TEST_DEPRECATED_READ_ONLY"), null, null); > IJavaModelStatus status = JavaConventions.validateClasspathEntry(project, variable, false); >- assertStatus("Classpath variable 'TEST_DEPRECATED_READ_ONLY' in project P1 is deprecated: 'A deprecated and read-only initializer'", status); >+ assertStatus("Classpath variable 'TEST_DEPRECATED_READ_ONLY' in project 'P1' is deprecated: A deprecated and read-only initializer", status); > assertFalse("Status should not be OK", status.isOK()); > assertEquals("Status should have WARNING severity", IStatus.WARNING, status.getSeverity()); > assertEquals("Status should have deprecated code", IJavaModelStatusConstants.DEPRECATED_VARIABLE, status.getCode()); >@@ -1228,7 +1228,7 @@ > IMarker[] markers = project.getProject().findMarkers(IJavaModelMarker.BUILDPATH_PROBLEM_MARKER, false, IResource.DEPTH_ZERO); > sortMarkers(markers); > assertMarkers("Unexpected marker(s)", >- "Classpath variable 'TEST_DEPRECATED_READ_ONLY' in project P1 is deprecated: 'A deprecated and read-only initializer'", >+ "Classpath variable 'TEST_DEPRECATED_READ_ONLY' in project 'P1' is deprecated: A deprecated and read-only initializer", > markers); > assertEquals("Marker on deprecated variable should be a WARNING", IMarker.SEVERITY_WARNING, markers[0].getAttribute(IMarker.SEVERITY, -1)); > } finally {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 174348
:
59191
|
59192
|
59259