From c6c352c566ca687c77fb01405a73e048b318be68 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Fri, 1 Jul 2022 14:25:32 +0200 Subject: [PATCH] [tests] avoid accessing production internals in tests GitOrigin-RevId: c4ebd88a18b666088d2b06405ee7cf699bf10563 --- .../intellij/codeInspection/ex/InspectionProfileTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java b/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java index 2a60e56d08b6..c110d53e2041 100644 --- a/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java @@ -115,12 +115,11 @@ public class InspectionProfileTest extends LightIdeaTestCase { public void testModificationWithoutModification() { InspectionProfileImpl profile = createProfile(); - profile.getAllTools(); + assertNotEmpty(profile.getAllTools()); assertTrue(profile.wasInitialized()); - assertNotEmpty(profile.myTools.keySet()); profile.modifyProfile(m -> {}); assertTrue(profile.wasInitialized()); - assertNotEmpty(profile.myTools.keySet()); + assertNotEmpty(profile.getAllTools()); } public void testSameNameSharedProfile() {