Skip to content

Commit 44c2b9e

Browse files
Copilotlaeubi
andcommitted
Refine test comment for duplicate natures test
Co-authored-by: laeubi <1331477+laeubi@users.noreply.github.com>
1 parent 700eed6 commit 44c2b9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • resources/tests/org.eclipse.core.tests.resources/src/org/eclipse/core/tests/resources

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ public void testDuplicateNatures() throws Throwable {
181181
assertHasEnabledNature(NATURE_SIMPLE);
182182

183183
// Try to set natures with a duplicate - this should not throw IllegalArgumentException
184-
// The duplicate should be handled gracefully (validation will catch it later)
184+
// The duplicate should be handled gracefully (deduplication happens automatically)
185185
IProjectDescription desc = project.getDescription();
186186
desc.setNatureIds(new String[] { NATURE_SIMPLE, NATURE_SIMPLE });
187-
// This should not throw IllegalArgumentException
187+
// This should not throw IllegalArgumentException when hasPrivateChanges is called
188188
project.setDescription(desc, IResource.KEEP_HISTORY, createTestMonitor());
189189

190-
// The duplicate nature should have been detected by validation and only one instance should remain
190+
// After deduplication, only one instance of the nature should remain
191191
assertHasEnabledNature(NATURE_SIMPLE);
192192
}
193193

0 commit comments

Comments
 (0)