void (String classText, String expected) { myFixture.configureByText("Test.properties", classText); myFixture.testStructureView(svc -> { svc.setActionActive(Sorter.ALPHA_SORTER_ID, true); svc.setActionActive(GroupByWordPrefixes.ID, true); svc.setActionActive(PropertiesFileStructureViewModel.KIND_SORTER_ID, true); JTree tree = svc.getTree(); PlatformTestUtil.expandAll(tree); PlatformTestUtil.assertTreeEqual(tree, expected); }); }