Skip to content

Commit 776ef3f

Browse files
committed
Remove unnecessary calls to CoreTest#debug() #903
1 parent 753acd6 commit 776ef3f

File tree

2 files changed

+0
-38
lines changed

2 files changed

+0
-38
lines changed

resources/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/MarkerTest.java

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ public void tearDown() throws Exception {
200200
* Tests the appearance of marker changes in the resource delta.
201201
*/
202202
public void testMarkerChangesInDelta3() throws CoreException {
203-
debug("TestMarkerChangesInDelta3");
204-
205203
// Create and register a listener.
206204
final MarkersChangeListener listener = new MarkersChangeListener();
207205
setResourceChangeListener(listener);
@@ -245,12 +243,9 @@ public void testMarkerChangesInDelta3() throws CoreException {
245243
* Tests whether markers correctly copy with resources.
246244
*/
247245
public void testCopyResource() {
248-
debug("TestCopyResource");
249246
}
250247

251248
public void testCreateMarker() throws CoreException {
252-
debug("TestCreateMarker");
253-
254249
// create markers on our hierarchy of resources
255250
for (IResource resource : resources) {
256251
// Create and register a listener.
@@ -352,7 +347,6 @@ public void testCreationTime() throws CoreException {
352347
}
353348

354349
public void testDeleteMarker() throws CoreException {
355-
debug("TestDeleteMarker");
356350
IMarker marker = null;
357351

358352
// Create and register a listener.
@@ -395,7 +389,6 @@ public void testDeleteMarker() throws CoreException {
395389
}
396390

397391
public void testDeleteMarkers() throws CoreException {
398-
debug("TestDeleteMarkers");
399392
IMarker[] markers = createMarkers(resources, IMarker.PROBLEM);
400393

401394
// Check that a collection of markers can be removed.
@@ -407,8 +400,6 @@ public void testDeleteMarkers() throws CoreException {
407400
}
408401

409402
public void testFindMarkers() throws CoreException {
410-
debug("TestFindMarkers");
411-
412403
// test finding some markers which actually exist
413404
IMarker[] markers = createMarkers(resources, IMarker.PROBLEM);
414405
IMarker[] found = getWorkspace().getRoot().findMarkers(IMarker.PROBLEM, false, IResource.DEPTH_INFINITE);
@@ -451,8 +442,6 @@ public void test_35300() throws CoreException {
451442
}
452443

453444
public void test_10989() throws CoreException {
454-
debug("test_10989");
455-
456445
IProject project = getWorkspace().getRoot().getProject("MyProject");
457446
create(project, false);
458447
IFile file = project.getFile("foo.txt");
@@ -469,8 +458,6 @@ public void test_10989() throws CoreException {
469458
* Bug 289811 - ArrayIndexOutOfBoundsException in MarkerAttributeMap
470459
*/
471460
public void test_289811() throws CoreException {
472-
debug("test_289811");
473-
474461
String testValue = getRandomString();
475462
IProject project = getWorkspace().getRoot().getProject(getUniqueString());
476463
project.create(null);
@@ -593,8 +580,6 @@ public void testIsSubTypeOf() throws CoreException {
593580
* Tests the appearance of marker changes in the resource delta.
594581
*/
595582
public void testMarkerChangesInDelta() throws CoreException {
596-
debug("TestMarkerChangesInDelta");
597-
598583
// Create and register a listener.
599584
MarkersChangeListener listener = new MarkersChangeListener();
600585
setResourceChangeListener(listener);
@@ -674,8 +659,6 @@ public void testMarkerChangesInDelta() throws CoreException {
674659
* state of the marker before the change occurred.
675660
*/
676661
public void testMarkerDeltaAttributes() throws CoreException {
677-
debug("testMarkerDeltaAttributes");
678-
679662
// create markers on various resources
680663
final IMarker[] markers = new IMarker[3];
681664
IWorkspaceRunnable body = monitor -> {
@@ -743,8 +726,6 @@ public void testMarkerDeltaAttributes() throws CoreException {
743726
* Tests the appearance of marker changes in the resource delta.
744727
*/
745728
public void testMarkerDeltasCopyResource() throws CoreException {
746-
debug("testMarkerDeltasCopyResource");
747-
748729
// Create and register a listener.
749730
final MarkersChangeListener listener = new MarkersChangeListener();
750731
setResourceChangeListener(listener);
@@ -785,8 +766,6 @@ public void testMarkerDeltasCopyResource() throws CoreException {
785766
* Tests the appearance of marker changes in the resource delta.
786767
*/
787768
public void testMarkerDeltasMerge() throws CoreException {
788-
debug("testMarkerDeltasMerge");
789-
790769
// Create and register a listener.
791770
final MarkersChangeListener listener = new MarkersChangeListener();
792771
setResourceChangeListener(listener);
@@ -882,8 +861,6 @@ public void testMarkerDeltasMerge() throws CoreException {
882861
* Tests the appearance of marker changes in the resource delta.
883862
*/
884863
public void testMarkerDeltasMoveFolder() throws CoreException {
885-
debug("testMarkerDeltasMoveFolder");
886-
887864
IWorkspaceRoot root = getWorkspace().getRoot();
888865
final IProject project = root.getProject("MyProject");
889866
IFolder folder = project.getFolder("folder");
@@ -923,7 +900,6 @@ public void testMarkerDeltasMoveFolder() throws CoreException {
923900
* Tests the appearance of marker changes in the resource delta.
924901
*/
925902
public void testMarkerDeltasMoveFile() throws CoreException {
926-
debug("testMarkerDeltasMoveFile");
927903
IWorkspaceRoot root = getWorkspace().getRoot();
928904
final IProject project = root.getProject("MyProject");
929905
IFolder folder = project.getFolder("folder");
@@ -963,8 +939,6 @@ public void testMarkerDeltasMoveFile() throws CoreException {
963939
* Tests the appearance of marker changes in the resource delta.
964940
*/
965941
public void testMarkerDeltasMoveProject() throws CoreException {
966-
debug("testMarkerDeltasMoveProject");
967-
968942
// Create and register a listener.
969943
final MarkersChangeListener listener = new MarkersChangeListener();
970944
setResourceChangeListener(listener);
@@ -1017,8 +991,6 @@ public void testMarkerDeltasMoveProject() throws CoreException {
1017991
}
1018992

1019993
public void testMarkerSave() throws Exception {
1020-
debug("TestMarkerSave");
1021-
1022994
IMarker[] newMarkers = createMarkers(resources, IMarker.PROBLEM);
1023995
IMarker[] expected = new IMarker[newMarkers.length * 3];
1024996
System.arraycopy(newMarkers, 0, expected, 0, newMarkers.length);
@@ -1091,8 +1063,6 @@ public String requestName() {
10911063
}
10921064

10931065
public void testMarkerSaveTransient() throws Exception {
1094-
debug("TestMarkerSaveTransient");
1095-
10961066
// create the markers on the resources. create both transient
10971067
// and persistent markers.
10981068
final ArrayList<IMarker> persistentMarkers = new ArrayList<>();
@@ -1184,15 +1154,12 @@ public String requestName() {
11841154
* Tests whether markers correctly move with resources.
11851155
*/
11861156
public void testMoveResource() {
1187-
debug("TestMoveResource");
11881157
}
11891158

11901159
/*
11911160
* Test for PR: "1FWT3V5: ITPCORE:WINNT - Task view shows entries for closed projects"
11921161
*/
11931162
public void testProjectCloseOpen() throws CoreException {
1194-
debug("testProjectCloseOpen");
1195-
11961163
// create a marker on the project
11971164
IProject project = getWorkspace().getRoot().getProjects()[0];
11981165
IMarker marker = project.createMarker(IMarker.BOOKMARK);
@@ -1206,8 +1173,6 @@ public void testProjectCloseOpen() throws CoreException {
12061173
}
12071174

12081175
public void testSetGetAttribute() throws CoreException {
1209-
debug("testSetGetAttribute");
1210-
12111176
for (IResource resource : resources) {
12121177
String resourcePath = resource.getFullPath().toString();
12131178

@@ -1276,8 +1241,6 @@ public void testGetAttributesEquality() throws Exception {
12761241
}
12771242

12781243
public void testSetGetAttribute2() throws CoreException {
1279-
debug("testSetGetAttribute2");
1280-
12811244
for (IResource resource : resources) {
12821245
String resourcePath = resource.getFullPath().toString();
12831246

resources/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources/regression/IResourceTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ public void testCreate_1FW87XF() throws Throwable {
235235
// FIXME: remove when fix this PR
236236
String os = Platform.getOS();
237237
if (!os.equals(Platform.OS_LINUX)) {
238-
debug("Skipping testCreate_1FW87XF because it is still not supported by the platform.");
239238
return;
240239
}
241240

0 commit comments

Comments
 (0)