package Ġco op . r chain . ide . fold ing Ċ Ċ import Ġcom . intellij . openapi . command . Write Command Action Ċ import Ġcom . intellij . openapi . util . Text Range Ċ import Ġcom . intellij . psi . code Style . Code Style Manager Ċ import Ġcom . intellij . test Framework . fixtures . Light Code Insight Fixture TestCase Ċ import Ġcom . intellij . util . containers . Container Util Ċ import Ġco op . r chain . Rh olang TestUtil ĊĊ Ċ class ĠR h olang Code Insight Test Ġ: ĠLight Code Insight Fixture TestCase () Ġ{ ĊĠ Ġoverride Ġfun Ġget TestData Path (): ĠString Ġ{ ĊĠĠĠ Ġreturn ĠR h olang TestUtil . base TestData Path ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Fold ing () Ġ{ ĊĠĠĠ Ġdo Test Fold ing (" procedure ") ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġdo Formatter Test ( test Name : ĠString ) Ġ{ ĊĠĠĠ Ġobject Ġ: ĠWrite Command Action . Simple < Any >( project ) Ġ{ ĊĠĠĠĠĠ Ġ@ Throws ( Throwable :: class ) ĊĠĠĠĠĠ Ġoverride Ġfun Ġrun () Ġ{ ĊĠĠĠĠĠĠĠ Ġmy Fixture . configure By Files ("./ ide / formatter /$ test Name . rho ") ĊĠĠĠĠĠĠĠ ĠCode Style Manager . getInstance ( project ). re format Text ( my Fixture . file , ĊĠĠĠĠĠĠĠĠĠ ĠContainer Util . newArrayList < Text Range >( my Fixture . file . text Range )) ĊĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ}. execute () ĊĠĠĠ Ġmy Fixture . check Result By File ("./ ide / formatter /${ test Name } Formatted . rho ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Complex () Ġ{ ĊĠĠĠ Ġdo Formatter Test (" complex ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Uri () Ġ{ ĊĠĠĠ Ġdo Formatter Test (" URI ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest If Else () Ġ{ ĊĠĠĠ Ġdo Formatter Test (" if Else ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest Map Method (){ ĊĠĠĠ Ġdo Formatter Test (" map Methods ") ĊĠ Ġ} ĊĊĠ Ġfun Ġtest P are ns (){ ĊĠĠĠ Ġdo Formatter Test (" pare ns ") ĊĠ Ġ} ĊĊĠ Ġprivate Ġfun Ġdo Test Fold ing ( test Name : ĠString ) Ġ{ ĊĠĠĠ Ġmy Fixture . test Fold ing ("$ testData Path / ide / fold ing /$ test Name . rho ") ĊĠ Ġ} Ċ Ċ } Ċ