From d78c6ba41122524f9827094cec5e0b006f37e6d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Wed, 30 Aug 2023 10:27:11 +0200 Subject: [PATCH] fix SaveParticipantTest.test3 #651 https://github.com/eclipse-platform/eclipse.platform/issues/651 "a new project will always have .settings/org.eclipse.core.resources.prefs file generated, containing information about project default encoding." https://bugs.eclipse.org/bugs/show_bug.cgi?id=479450 --- .../core/tests/resources/saveparticipant/SaveManager3Test.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/tests/org.eclipse.core.tests.resources.saveparticipant/src/org/eclipse/core/tests/resources/saveparticipant/SaveManager3Test.java b/resources/tests/org.eclipse.core.tests.resources.saveparticipant/src/org/eclipse/core/tests/resources/saveparticipant/SaveManager3Test.java index 00995f73c69..3db94481358 100644 --- a/resources/tests/org.eclipse.core.tests.resources.saveparticipant/src/org/eclipse/core/tests/resources/saveparticipant/SaveManager3Test.java +++ b/resources/tests/org.eclipse.core.tests.resources.saveparticipant/src/org/eclipse/core/tests/resources/saveparticipant/SaveManager3Test.java @@ -133,6 +133,8 @@ public void testSaveParticipant() { plugin2.addExpectedChange(file, project, IResourceDelta.ADDED, 0); IResource prjFile = project.getFile(".project"); plugin2.addExpectedChange(prjFile, IResourceDelta.ADDED, 0); + plugin2.addExpectedChange(project.getFolder(".settings"), IResourceDelta.ADDED, 0); + plugin2.addExpectedChange(project.getFolder(".settings").getFile("org.eclipse.core.resources.prefs"), IResourceDelta.ADDED, 0); IResource[] resources = buildResources(project, defineHierarchy(PROJECT_2)); plugin2.addExpectedChange(resources, IResourceDelta.ADDED, 0); //