From d3a1f1d9a051c56d18eb9cbf34c311af645095cb 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); //