package Ġco . nums . intellij . a em . ht l . highlight ing Ċ Ċ import Ġco . nums . intellij . a em . ht l . H tl TestBase Ċ import Ġco . nums . intellij . a em . ht l . file . H tl FileType Ċ import Ġcom . intellij . code Insight . daemon . impl . Highlight Info Ċ import Ġcom . intellij . openapi . editor . colors . Text Attributes Key Ċ import Ġorg . assertj . core . api . Assertions Ċ Ċ abstract Ġclass ĠH tl Highlighting TestBase Ġ: ĠH tl TestBase () Ġ{ ĊĊĠĠĠ Ġprotected Ġfun Ġtest Highlighting ( text : ĠString , Ġvar arg Ġexpected Highlight s : ĠPair < String , ĠText Attributes Key >) Ġ{ ĊĠĠĠĠĠĠĠ Ġmy Fixture . configure By Text ( H tl FileType , Ġtext ) ĊĊĠĠĠĠĠĠĠ Ġval Ġhighlight Infos Ġ= Ġmy Fixture . do Highlighting () ĊĊĠĠĠĠĠĠĠ ĠassertThat ( highlight Infos ). contains Exactly (* expected Highlight s ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun ĠassertThat ( highlight Infos : ĠList < Highlight Info >) Ġ= ĊĠĠĠĠĠĠĠĠĠĠĠ ĠAssertions . assertThat ( highlight Infos ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. extract ing < Pair < String , ĠText Attributes Key >> Ġ{ ĠPair ( it . text , Ġit . forced Text Attributes Key ) Ġ} ĊĊĠĠĠ Ġprotected Ġfun ĠString . with Type ( type : ĠText Attributes Key ): ĠPair < String , ĠText Attributes Key > Ġ= ĠPair ( this , Ġtype ) Ċ Ċ } Ċ